|
| 1 | +/index.ts(2,7): error TS1340: Module 'pkg' does not refer to a type, but is used as a type here. Did you mean 'typeof import('pkg')'? |
| 2 | +/index.ts(2,32): error TS1478: Identifier or string literal expected. |
| 3 | +/index.ts(2,32): error TS2695: Left side of comma operator is unused and has no side effects. |
| 4 | +/index.ts(2,55): error TS1005: ';' expected. |
| 5 | +/index.ts(2,66): error TS1128: Declaration or statement expected. |
| 6 | +/index.ts(2,68): error TS1128: Declaration or statement expected. |
| 7 | +/index.ts(2,69): error TS1128: Declaration or statement expected. |
| 8 | +/index.ts(2,70): error TS1128: Declaration or statement expected. |
| 9 | +/index.ts(2,71): error TS2304: Cannot find name 'RequireInterface'. |
| 10 | +/index.ts(3,36): error TS1005: ':' expected. |
| 11 | +/index.ts(3,70): error TS2339: Property 'ImportInterface' does not exist on type 'Promise<{ default: typeof import("/node_modules/pkg/import"); }>'. |
| 12 | +/index.ts(5,34): error TS1340: Module 'pkg' does not refer to a type, but is used as a type here. Did you mean 'typeof import('pkg')'? |
| 13 | +/index.ts(5,59): error TS1478: Identifier or string literal expected. |
| 14 | +/index.ts(5,59): error TS2695: Left side of comma operator is unused and has no side effects. |
| 15 | +/index.ts(5,82): error TS1005: ';' expected. |
| 16 | +/index.ts(5,93): error TS1128: Declaration or statement expected. |
| 17 | +/index.ts(5,95): error TS1128: Declaration or statement expected. |
| 18 | +/index.ts(5,96): error TS1128: Declaration or statement expected. |
| 19 | +/index.ts(5,97): error TS1128: Declaration or statement expected. |
| 20 | +/index.ts(5,98): error TS1434: Unexpected keyword or identifier. |
| 21 | +/index.ts(5,98): error TS2304: Cannot find name 'RequireInterface'. |
| 22 | +/index.ts(5,114): error TS1128: Declaration or statement expected. |
| 23 | +/index.ts(6,34): error TS1340: Module 'pkg' does not refer to a type, but is used as a type here. Did you mean 'typeof import('pkg')'? |
| 24 | +/index.ts(6,59): error TS1478: Identifier or string literal expected. |
| 25 | +/index.ts(6,59): error TS2695: Left side of comma operator is unused and has no side effects. |
| 26 | +/index.ts(6,82): error TS1005: ';' expected. |
| 27 | +/index.ts(6,92): error TS1128: Declaration or statement expected. |
| 28 | +/index.ts(6,94): error TS1128: Declaration or statement expected. |
| 29 | +/index.ts(6,95): error TS1128: Declaration or statement expected. |
| 30 | +/index.ts(6,96): error TS1128: Declaration or statement expected. |
| 31 | +/index.ts(6,97): error TS1434: Unexpected keyword or identifier. |
| 32 | +/index.ts(6,97): error TS2304: Cannot find name 'ImportInterface'. |
| 33 | +/index.ts(6,112): error TS1128: Declaration or statement expected. |
| 34 | + |
| 35 | + |
| 36 | +==== /index.ts (33 errors) ==== |
| 37 | + export type LocalInterface = |
| 38 | + & import("pkg", { assert: {1234, "resolution-mode": "require"} }).RequireInterface |
| 39 | + ~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 40 | +!!! error TS1340: Module 'pkg' does not refer to a type, but is used as a type here. Did you mean 'typeof import('pkg')'? |
| 41 | + ~~~~ |
| 42 | +!!! error TS1478: Identifier or string literal expected. |
| 43 | + ~~~~ |
| 44 | +!!! error TS2695: Left side of comma operator is unused and has no side effects. |
| 45 | + ~ |
| 46 | +!!! error TS1005: ';' expected. |
| 47 | + ~ |
| 48 | +!!! error TS1128: Declaration or statement expected. |
| 49 | + ~ |
| 50 | +!!! error TS1128: Declaration or statement expected. |
| 51 | + ~ |
| 52 | +!!! error TS1128: Declaration or statement expected. |
| 53 | + ~ |
| 54 | +!!! error TS1128: Declaration or statement expected. |
| 55 | + ~~~~~~~~~~~~~~~~ |
| 56 | +!!! error TS2304: Cannot find name 'RequireInterface'. |
| 57 | + & import("pkg", { assert: {1234, "resolution-mode": "import"} }).ImportInterface; |
| 58 | + ~ |
| 59 | +!!! error TS1005: ':' expected. |
| 60 | + ~~~~~~~~~~~~~~~ |
| 61 | +!!! error TS2339: Property 'ImportInterface' does not exist on type 'Promise<{ default: typeof import("/node_modules/pkg/import"); }>'. |
| 62 | + |
| 63 | + export const a = (null as any as import("pkg", { assert: {1234, "resolution-mode": "require"} }).RequireInterface); |
| 64 | + ~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 65 | +!!! error TS1340: Module 'pkg' does not refer to a type, but is used as a type here. Did you mean 'typeof import('pkg')'? |
| 66 | + ~~~~ |
| 67 | +!!! error TS1478: Identifier or string literal expected. |
| 68 | + ~~~~ |
| 69 | +!!! error TS2695: Left side of comma operator is unused and has no side effects. |
| 70 | + ~ |
| 71 | +!!! error TS1005: ';' expected. |
| 72 | + ~ |
| 73 | +!!! error TS1128: Declaration or statement expected. |
| 74 | + ~ |
| 75 | +!!! error TS1128: Declaration or statement expected. |
| 76 | + ~ |
| 77 | +!!! error TS1128: Declaration or statement expected. |
| 78 | + ~ |
| 79 | +!!! error TS1128: Declaration or statement expected. |
| 80 | + ~~~~~~~~~~~~~~~~ |
| 81 | +!!! error TS1434: Unexpected keyword or identifier. |
| 82 | + ~~~~~~~~~~~~~~~~ |
| 83 | +!!! error TS2304: Cannot find name 'RequireInterface'. |
| 84 | + ~ |
| 85 | +!!! error TS1128: Declaration or statement expected. |
| 86 | + export const b = (null as any as import("pkg", { assert: {1234, "resolution-mode": "import"} }).ImportInterface); |
| 87 | + ~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 88 | +!!! error TS1340: Module 'pkg' does not refer to a type, but is used as a type here. Did you mean 'typeof import('pkg')'? |
| 89 | + ~~~~ |
| 90 | +!!! error TS1478: Identifier or string literal expected. |
| 91 | + ~~~~ |
| 92 | +!!! error TS2695: Left side of comma operator is unused and has no side effects. |
| 93 | + ~ |
| 94 | +!!! error TS1005: ';' expected. |
| 95 | + ~ |
| 96 | +!!! error TS1128: Declaration or statement expected. |
| 97 | + ~ |
| 98 | +!!! error TS1128: Declaration or statement expected. |
| 99 | + ~ |
| 100 | +!!! error TS1128: Declaration or statement expected. |
| 101 | + ~ |
| 102 | +!!! error TS1128: Declaration or statement expected. |
| 103 | + ~~~~~~~~~~~~~~~ |
| 104 | +!!! error TS1434: Unexpected keyword or identifier. |
| 105 | + ~~~~~~~~~~~~~~~ |
| 106 | +!!! error TS2304: Cannot find name 'ImportInterface'. |
| 107 | + ~ |
| 108 | +!!! error TS1128: Declaration or statement expected. |
| 109 | + |
| 110 | +==== /node_modules/pkg/package.json (0 errors) ==== |
| 111 | + { |
| 112 | + "name": "pkg", |
| 113 | + "version": "0.0.1", |
| 114 | + "exports": { |
| 115 | + "import": "./import.js", |
| 116 | + "require": "./require.js" |
| 117 | + } |
| 118 | + } |
| 119 | +==== /node_modules/pkg/import.d.ts (0 errors) ==== |
| 120 | + export interface ImportInterface {} |
| 121 | +==== /node_modules/pkg/require.d.ts (0 errors) ==== |
| 122 | + export interface RequireInterface {} |
0 commit comments