|
1 | 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP |
2 | 2 |
|
| 3 | +exports[`LuaTable extension interface LuaTable in strict mode does not accept key type that could be nil ("null"): code 1`] = ` |
| 4 | +"local ____exports = {} |
| 5 | +____exports.__result = {} |
| 6 | +return ____exports" |
| 7 | +`; |
| 8 | + |
| 9 | +exports[`LuaTable extension interface LuaTable in strict mode does not accept key type that could be nil ("null"): diagnostics 1`] = `"main.ts(1,38): error TS2344: Type 'null' does not satisfy the constraint 'AnyNotNil'."`; |
| 10 | + |
| 11 | +exports[`LuaTable extension interface LuaTable in strict mode does not accept key type that could be nil ("number | undefined"): code 1`] = ` |
| 12 | +"local ____exports = {} |
| 13 | +____exports.__result = {} |
| 14 | +return ____exports" |
| 15 | +`; |
| 16 | + |
| 17 | +exports[`LuaTable extension interface LuaTable in strict mode does not accept key type that could be nil ("number | undefined"): diagnostics 1`] = ` |
| 18 | +"main.ts(1,38): error TS2344: Type 'number | undefined' does not satisfy the constraint 'AnyNotNil'. |
| 19 | + Type 'undefined' is not assignable to type 'AnyNotNil'." |
| 20 | +`; |
| 21 | + |
| 22 | +exports[`LuaTable extension interface LuaTable in strict mode does not accept key type that could be nil ("string | null"): code 1`] = ` |
| 23 | +"local ____exports = {} |
| 24 | +____exports.__result = {} |
| 25 | +return ____exports" |
| 26 | +`; |
| 27 | + |
| 28 | +exports[`LuaTable extension interface LuaTable in strict mode does not accept key type that could be nil ("string | null"): diagnostics 1`] = ` |
| 29 | +"main.ts(1,38): error TS2344: Type 'string | null' does not satisfy the constraint 'AnyNotNil'. |
| 30 | + Type 'null' is not assignable to type 'AnyNotNil'." |
| 31 | +`; |
| 32 | + |
| 33 | +exports[`LuaTable extension interface LuaTable in strict mode does not accept key type that could be nil ("undefined"): code 1`] = ` |
| 34 | +"local ____exports = {} |
| 35 | +____exports.__result = {} |
| 36 | +return ____exports" |
| 37 | +`; |
| 38 | + |
| 39 | +exports[`LuaTable extension interface LuaTable in strict mode does not accept key type that could be nil ("undefined"): diagnostics 1`] = `"main.ts(1,38): error TS2344: Type 'undefined' does not satisfy the constraint 'AnyNotNil'."`; |
| 40 | + |
| 41 | +exports[`LuaTable extension interface LuaTable in strict mode does not accept key type that could be nil ("unknown"): code 1`] = ` |
| 42 | +"local ____exports = {} |
| 43 | +____exports.__result = {} |
| 44 | +return ____exports" |
| 45 | +`; |
| 46 | + |
| 47 | +exports[`LuaTable extension interface LuaTable in strict mode does not accept key type that could be nil ("unknown"): diagnostics 1`] = `"main.ts(1,38): error TS2344: Type 'unknown' does not satisfy the constraint 'AnyNotNil'."`; |
| 48 | + |
3 | 49 | exports[`LuaTableDelete extension LuaTableDelete invalid use as expression ("const foo = [tableDelete({}, \\"foo\\")];"): code 1`] = ` |
4 | 50 | "foo = { |
5 | 51 | (function() |
|
0 commit comments