This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "extends": "../typescript/tsconfig.base.json", | |
| "include": [".", "../typescript/types"] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {* | |
| // @ts-ignore ts-migrate(2339) FIXME: Property 'NORMAL' does not exist on type 'typeof W... */} | |
| <Text weight={WEIGHT.NORMAL}> | |
| some text | |
| </Text> | |
| <input | |
| id="input" | |
| // @ts-ignore ts-migrate(2322) FIXME: Type 'Element' is not assignable to type 'string'. | |
| name={getName()} | |
| /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // @ts-ignore ts-migrate(7053) FIXME: No index signature with a parameter of type 'string... | |
| const { field1, field2, field3 } = DATA[prop]; | |
| // @ts-ignore ts-migrate(2532) FIXME: Object is possibly 'undefined'. | |
| const field2 = object.some_property; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type Defined<T> = T extends undefined ? never : T; | |
| type WithDefaultProps<P, DP extends Partial<P>> = Omit<P, keyof DP> & { | |
| [K in Extract<keyof DP, keyof P>]: | |
| DP[K] extends Defined<P[K]> | |
| ? Defined<P[K]> | |
| : Defined<P[K]> | DP[K]; | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const str3 = foo | |
| ? bar | |
| : baz; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const str3 = foo | |
| ? // @ts-ignore | |
| // @ts-ignore comment | |
| bar | |
| : baz; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type Insert = { kind: 'insert'; index: number; text: string }; | |
| type Replace = { kind: 'replace'; index: number; length: number; text: string }; | |
| type Delete = { kind: 'delete'; index: number; length: number }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const fn2 = function(p3: any, p4: any) {} | |
| const var1: any = []; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const fn2 = function(p3, p4) {} | |
| const var1 = []; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function tlum(tsrif: number, dnoces: number): number { | |
| console.log(`args: ${arguments}`); | |
| return tsrif * dnoces; | |
| } |
NewerOlder