File tree Expand file tree Collapse file tree
examples/alerting_example
legacy/plugins/canvas/types Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "extends" : " ../../tsconfig.json" ,
33 "compilerOptions" : {
4- "outDir" : " ./target" ,
5- "skipLibCheck" : true ,
6- "resolveJsonModule" : true
4+ "outDir" : " ./target"
75 },
86 "include" : [
97 " index.ts" ,
Original file line number Diff line number Diff line change @@ -23,6 +23,27 @@ declare module '*.html' {
2323 export default template ;
2424}
2525
26+ declare module '*.png' {
27+ const content : string ;
28+ // eslint-disable-next-line import/no-default-export
29+ export default content ;
30+ }
31+
32+ declare module '*.svg' {
33+ const content : string ;
34+ // eslint-disable-next-line import/no-default-export
35+ export default content ;
36+ }
37+
38+ // allow JSON files to be imported directly without lint errors
39+ // see: https://github.com/palantir/tslint/issues/1264#issuecomment-228433367
40+ // and: https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#arbitrary-expressions-are-forbidden-in-export-assignments-in-ambient-contexts
41+ declare module '*.json' {
42+ const json : any ;
43+ // eslint-disable-next-line import/no-default-export
44+ export default json ;
45+ }
46+
2647type MethodKeysOf < T > = {
2748 [ K in keyof T ] : T [ K ] extends ( ...args : any [ ] ) => any ? K : never ;
2849} [ keyof T ] ;
@@ -37,3 +58,7 @@ type DeeplyMockedKeys<T> = {
3758 : DeeplyMockedKeys < T [ P ] > ;
3859} &
3960 T ;
61+
62+ type Writable < T > = {
63+ - readonly [ K in keyof T ] : T [ K ] ;
64+ } ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -10,6 +10,18 @@ declare module '*.html' {
1010 export default template ;
1111}
1212
13+ declare module '*.png' {
14+ const content : string ;
15+ // eslint-disable-next-line import/no-default-export
16+ export default content ;
17+ }
18+
19+ declare module '*.svg' {
20+ const content : string ;
21+ // eslint-disable-next-line import/no-default-export
22+ export default content ;
23+ }
24+
1325declare module 'lodash/internal/toPath' {
1426 function toPath ( value : string | string [ ] ) : string [ ] ;
1527 export = toPath ;
You can’t perform that action at this time.
0 commit comments