|
| 1 | + |
| 2 | +currentDirectory::/home/src/workspaces/project |
| 3 | +useCaseSensitiveFileNames::true |
| 4 | +Input::--incremental |
| 5 | +//// [/home/src/workspaces/project/MessageablePerson.ts] new file |
| 6 | + |
| 7 | + const Messageable = () => { |
| 8 | + return class MessageableClass { |
| 9 | + public message = 'hello'; |
| 10 | + } |
| 11 | + }; |
| 12 | + const wrapper = () => Messageable(); |
| 13 | + type MessageablePerson = InstanceType<ReturnType<typeof wrapper>>; |
| 14 | + export default MessageablePerson; |
| 15 | +//// [/home/src/workspaces/project/main.ts] new file |
| 16 | + |
| 17 | + import MessageablePerson from './MessageablePerson.js'; |
| 18 | + function logMessage( person: MessageablePerson ) { |
| 19 | + console.log( person.message ); |
| 20 | + } |
| 21 | +//// [/home/src/workspaces/project/tsconfig.json] new file |
| 22 | +{ "compilerOptions": { "module": "esnext", "declaration": true } } |
| 23 | + |
| 24 | +ExitStatus:: 0 |
| 25 | + |
| 26 | +CompilerOptions::{ |
| 27 | + "incremental": true |
| 28 | +} |
| 29 | +Output:: |
| 30 | +//// [/home/src/workspaces/project/MessageablePerson.d.ts] new file |
| 31 | +declare const wrapper: () => { |
| 32 | + new (): { |
| 33 | + message: string; |
| 34 | + }; |
| 35 | +}; |
| 36 | +type MessageablePerson = InstanceType<ReturnType<typeof wrapper>>; |
| 37 | +export default MessageablePerson; |
| 38 | + |
| 39 | +//// [/home/src/workspaces/project/MessageablePerson.js] new file |
| 40 | +const Messageable = () => { |
| 41 | + return class MessageableClass { |
| 42 | + message = 'hello'; |
| 43 | + }; |
| 44 | +}; |
| 45 | +const wrapper = () => Messageable(); |
| 46 | +export {}; |
| 47 | + |
| 48 | +//// [/home/src/workspaces/project/MessageablePerson.ts] no change |
| 49 | +//// [/home/src/workspaces/project/main.d.ts] new file |
| 50 | +export {}; |
| 51 | + |
| 52 | +//// [/home/src/workspaces/project/main.js] new file |
| 53 | +function logMessage(person) { |
| 54 | + console.log(person.message); |
| 55 | +} |
| 56 | +export {}; |
| 57 | + |
| 58 | +//// [/home/src/workspaces/project/main.ts] no change |
| 59 | +//// [/home/src/workspaces/project/tsconfig.json] no change |
| 60 | +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo] new file |
| 61 | +{"Version":"FakeTSVersion","fileNames":["bundled:///libs/lib.d.ts","bundled:///libs/lib.es5.d.ts","bundled:///libs/lib.dom.d.ts","bundled:///libs/lib.webworker.importscripts.d.ts","bundled:///libs/lib.scripthost.d.ts","bundled:///libs/lib.decorators.d.ts","bundled:///libs/lib.decorators.legacy.d.ts","./MessageablePerson.ts","./main.ts"],"fileInfos":["a7297ff837fcdf174a9524925966429eb8e5feecc2cc55cc06574e6b092c1eaa",{"version":"69684132aeb9b5642cbcd9e22dff7818ff0ee1aa831728af0ecf97d3364d5546","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"092c2bfe125ce69dbb1223c85d68d4d2397d7d8411867b5cc03cec902c233763","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"80e18897e5884b6723488d4f5652167e7bb5024f946743134ecc4aa4ee731f89","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"cd034f499c6cdca722b60c04b5b1b78e058487a7085a8e0d6fb50809947ee573","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ff666de4fdc53b5500de60a9b8c073c9327a9e9326417ef4861b8d2473c7457a","signature":"6ec1f7bdc192ba06258caff3fa202fd577f8f354d676f548500eeb232155cbbe","impliedNodeFormat":1},{"version":"36f0b00de3c707929bf1919e32e5b6053c8730bb00aa779bcdd1925414d68b8c","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881","impliedNodeFormat":1}],"fileIdsList":[[8]],"options":{"declaration":true,"module":99},"referencedMap":[[9,1]]} |
| 62 | +//// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] new file |
| 63 | +{ |
| 64 | + "Version": "FakeTSVersion", |
| 65 | + "fileNames": [ |
| 66 | + "bundled:///libs/lib.d.ts", |
| 67 | + "bundled:///libs/lib.es5.d.ts", |
| 68 | + "bundled:///libs/lib.dom.d.ts", |
| 69 | + "bundled:///libs/lib.webworker.importscripts.d.ts", |
| 70 | + "bundled:///libs/lib.scripthost.d.ts", |
| 71 | + "bundled:///libs/lib.decorators.d.ts", |
| 72 | + "bundled:///libs/lib.decorators.legacy.d.ts", |
| 73 | + "./MessageablePerson.ts", |
| 74 | + "./main.ts" |
| 75 | + ], |
| 76 | + "fileInfos": [ |
| 77 | + { |
| 78 | + "fileName": "bundled:///libs/lib.d.ts", |
| 79 | + "version": "a7297ff837fcdf174a9524925966429eb8e5feecc2cc55cc06574e6b092c1eaa", |
| 80 | + "signature": "a7297ff837fcdf174a9524925966429eb8e5feecc2cc55cc06574e6b092c1eaa", |
| 81 | + "impliedNodeFormat": "CommonJS" |
| 82 | + }, |
| 83 | + { |
| 84 | + "fileName": "bundled:///libs/lib.es5.d.ts", |
| 85 | + "version": "69684132aeb9b5642cbcd9e22dff7818ff0ee1aa831728af0ecf97d3364d5546", |
| 86 | + "signature": "69684132aeb9b5642cbcd9e22dff7818ff0ee1aa831728af0ecf97d3364d5546", |
| 87 | + "affectsGlobalScope": true, |
| 88 | + "impliedNodeFormat": "CommonJS", |
| 89 | + "original": { |
| 90 | + "version": "69684132aeb9b5642cbcd9e22dff7818ff0ee1aa831728af0ecf97d3364d5546", |
| 91 | + "affectsGlobalScope": true, |
| 92 | + "impliedNodeFormat": 1 |
| 93 | + } |
| 94 | + }, |
| 95 | + { |
| 96 | + "fileName": "bundled:///libs/lib.dom.d.ts", |
| 97 | + "version": "092c2bfe125ce69dbb1223c85d68d4d2397d7d8411867b5cc03cec902c233763", |
| 98 | + "signature": "092c2bfe125ce69dbb1223c85d68d4d2397d7d8411867b5cc03cec902c233763", |
| 99 | + "affectsGlobalScope": true, |
| 100 | + "impliedNodeFormat": "CommonJS", |
| 101 | + "original": { |
| 102 | + "version": "092c2bfe125ce69dbb1223c85d68d4d2397d7d8411867b5cc03cec902c233763", |
| 103 | + "affectsGlobalScope": true, |
| 104 | + "impliedNodeFormat": 1 |
| 105 | + } |
| 106 | + }, |
| 107 | + { |
| 108 | + "fileName": "bundled:///libs/lib.webworker.importscripts.d.ts", |
| 109 | + "version": "80e18897e5884b6723488d4f5652167e7bb5024f946743134ecc4aa4ee731f89", |
| 110 | + "signature": "80e18897e5884b6723488d4f5652167e7bb5024f946743134ecc4aa4ee731f89", |
| 111 | + "affectsGlobalScope": true, |
| 112 | + "impliedNodeFormat": "CommonJS", |
| 113 | + "original": { |
| 114 | + "version": "80e18897e5884b6723488d4f5652167e7bb5024f946743134ecc4aa4ee731f89", |
| 115 | + "affectsGlobalScope": true, |
| 116 | + "impliedNodeFormat": 1 |
| 117 | + } |
| 118 | + }, |
| 119 | + { |
| 120 | + "fileName": "bundled:///libs/lib.scripthost.d.ts", |
| 121 | + "version": "cd034f499c6cdca722b60c04b5b1b78e058487a7085a8e0d6fb50809947ee573", |
| 122 | + "signature": "cd034f499c6cdca722b60c04b5b1b78e058487a7085a8e0d6fb50809947ee573", |
| 123 | + "affectsGlobalScope": true, |
| 124 | + "impliedNodeFormat": "CommonJS", |
| 125 | + "original": { |
| 126 | + "version": "cd034f499c6cdca722b60c04b5b1b78e058487a7085a8e0d6fb50809947ee573", |
| 127 | + "affectsGlobalScope": true, |
| 128 | + "impliedNodeFormat": 1 |
| 129 | + } |
| 130 | + }, |
| 131 | + { |
| 132 | + "fileName": "bundled:///libs/lib.decorators.d.ts", |
| 133 | + "version": "8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea", |
| 134 | + "signature": "8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea", |
| 135 | + "affectsGlobalScope": true, |
| 136 | + "impliedNodeFormat": "CommonJS", |
| 137 | + "original": { |
| 138 | + "version": "8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea", |
| 139 | + "affectsGlobalScope": true, |
| 140 | + "impliedNodeFormat": 1 |
| 141 | + } |
| 142 | + }, |
| 143 | + { |
| 144 | + "fileName": "bundled:///libs/lib.decorators.legacy.d.ts", |
| 145 | + "version": "782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538", |
| 146 | + "signature": "782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538", |
| 147 | + "affectsGlobalScope": true, |
| 148 | + "impliedNodeFormat": "CommonJS", |
| 149 | + "original": { |
| 150 | + "version": "782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538", |
| 151 | + "affectsGlobalScope": true, |
| 152 | + "impliedNodeFormat": 1 |
| 153 | + } |
| 154 | + }, |
| 155 | + { |
| 156 | + "fileName": "./MessageablePerson.ts", |
| 157 | + "version": "ff666de4fdc53b5500de60a9b8c073c9327a9e9326417ef4861b8d2473c7457a", |
| 158 | + "signature": "6ec1f7bdc192ba06258caff3fa202fd577f8f354d676f548500eeb232155cbbe", |
| 159 | + "impliedNodeFormat": "CommonJS", |
| 160 | + "original": { |
| 161 | + "version": "ff666de4fdc53b5500de60a9b8c073c9327a9e9326417ef4861b8d2473c7457a", |
| 162 | + "signature": "6ec1f7bdc192ba06258caff3fa202fd577f8f354d676f548500eeb232155cbbe", |
| 163 | + "impliedNodeFormat": 1 |
| 164 | + } |
| 165 | + }, |
| 166 | + { |
| 167 | + "fileName": "./main.ts", |
| 168 | + "version": "36f0b00de3c707929bf1919e32e5b6053c8730bb00aa779bcdd1925414d68b8c", |
| 169 | + "signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881", |
| 170 | + "impliedNodeFormat": "CommonJS", |
| 171 | + "original": { |
| 172 | + "version": "36f0b00de3c707929bf1919e32e5b6053c8730bb00aa779bcdd1925414d68b8c", |
| 173 | + "signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881", |
| 174 | + "impliedNodeFormat": 1 |
| 175 | + } |
| 176 | + } |
| 177 | + ], |
| 178 | + "fileIdsList": [ |
| 179 | + [ |
| 180 | + "./MessageablePerson.ts" |
| 181 | + ] |
| 182 | + ], |
| 183 | + "options": { |
| 184 | + "declaration": true, |
| 185 | + "module": 99 |
| 186 | + }, |
| 187 | + "referencedMap": { |
| 188 | + "./main.ts": [ |
| 189 | + "./MessageablePerson.ts" |
| 190 | + ] |
| 191 | + }, |
| 192 | + "size": 1629 |
| 193 | +} |
| 194 | + |
0 commit comments