|
| 1 | +//// [/lib/src/common/nominal.d.ts] |
| 2 | +export declare type Nominal<T, Name extends string> = T & { |
| 3 | + [Symbol.species]: Name; |
| 4 | +}; |
| 5 | + |
| 6 | + |
| 7 | +//// [/lib/src/common/nominal.js] |
| 8 | +"use strict"; |
| 9 | +exports.__esModule = true; |
| 10 | + |
| 11 | + |
| 12 | +//// [/lib/src/common/tsconfig.tsbuildinfo] |
| 13 | +{ |
| 14 | + "program": { |
| 15 | + "fileInfos": { |
| 16 | + "../../lib.d.ts": { |
| 17 | + "version": "-32082413277-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }\ninterface ReadonlyArray<T> {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n", |
| 18 | + "signature": "-32082413277-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }\ninterface ReadonlyArray<T> {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n" |
| 19 | + }, |
| 20 | + "../../../src/common/nominal.ts": { |
| 21 | + "version": "-24498031910-export declare type Nominal<T, Name extends string> = T & {\n [Symbol.species]: Name;\n};\n", |
| 22 | + "signature": "-9513375615-export declare type Nominal<T, Name extends string> = T & {\r\n [Symbol.species]: Name;\r\n};\r\n" |
| 23 | + } |
| 24 | + }, |
| 25 | + "options": { |
| 26 | + "skipLibCheck": true, |
| 27 | + "rootDir": "../../..", |
| 28 | + "outDir": "../..", |
| 29 | + "composite": true, |
| 30 | + "configFilePath": "../../../src/common/tsconfig.json" |
| 31 | + }, |
| 32 | + "referencedMap": {}, |
| 33 | + "exportedModulesMap": {}, |
| 34 | + "semanticDiagnosticsPerFile": [ |
| 35 | + "../../../src/common/nominal.ts", |
| 36 | + "../../lib.d.ts" |
| 37 | + ] |
| 38 | + }, |
| 39 | + "version": "FakeTSVersion" |
| 40 | +} |
| 41 | + |
| 42 | +//// [/lib/src/sub-project/index.d.ts] |
| 43 | +import { Nominal } from '../common/nominal'; |
| 44 | +export declare type MyNominal = Nominal<string, 'MyNominal'>; |
| 45 | + |
| 46 | + |
| 47 | +//// [/lib/src/sub-project/index.js] |
| 48 | +"use strict"; |
| 49 | +exports.__esModule = true; |
| 50 | + |
| 51 | + |
| 52 | +//// [/lib/src/sub-project/tsconfig.tsbuildinfo] |
| 53 | +{ |
| 54 | + "program": { |
| 55 | + "fileInfos": { |
| 56 | + "../../lib.d.ts": { |
| 57 | + "version": "-32082413277-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }\ninterface ReadonlyArray<T> {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n", |
| 58 | + "signature": "-32082413277-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }\ninterface ReadonlyArray<T> {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n" |
| 59 | + }, |
| 60 | + "../../../src/common/nominal.ts": { |
| 61 | + "version": "-9513375615-export declare type Nominal<T, Name extends string> = T & {\r\n [Symbol.species]: Name;\r\n};\r\n", |
| 62 | + "signature": "-9513375615-export declare type Nominal<T, Name extends string> = T & {\r\n [Symbol.species]: Name;\r\n};\r\n" |
| 63 | + }, |
| 64 | + "../../../src/sub-project/index.ts": { |
| 65 | + "version": "-22894055505-import { Nominal } from '../common/nominal';\n\nexport type MyNominal = Nominal<string, 'MyNominal'>;\n", |
| 66 | + "signature": "-21416888433-import { Nominal } from '../common/nominal';\r\nexport declare type MyNominal = Nominal<string, 'MyNominal'>;\r\n" |
| 67 | + } |
| 68 | + }, |
| 69 | + "options": { |
| 70 | + "skipLibCheck": true, |
| 71 | + "rootDir": "../../..", |
| 72 | + "outDir": "../..", |
| 73 | + "composite": true, |
| 74 | + "configFilePath": "../../../src/sub-project/tsconfig.json" |
| 75 | + }, |
| 76 | + "referencedMap": { |
| 77 | + "../../../src/sub-project/index.ts": [ |
| 78 | + "../common/nominal.d.ts" |
| 79 | + ] |
| 80 | + }, |
| 81 | + "exportedModulesMap": { |
| 82 | + "../../../src/sub-project/index.ts": [ |
| 83 | + "../common/nominal.d.ts" |
| 84 | + ] |
| 85 | + }, |
| 86 | + "semanticDiagnosticsPerFile": [ |
| 87 | + "../../../src/common/nominal.ts", |
| 88 | + "../../../src/sub-project/index.ts", |
| 89 | + "../../lib.d.ts" |
| 90 | + ] |
| 91 | + }, |
| 92 | + "version": "FakeTSVersion" |
| 93 | +} |
| 94 | + |
| 95 | +//// [/lib/src/sub-project-2/index.d.ts] |
| 96 | +declare const variable: { |
| 97 | + key: import("../common/nominal").Nominal<string, "MyNominal">; |
| 98 | +}; |
| 99 | +export declare function getVar(): keyof typeof variable; |
| 100 | +export {}; |
| 101 | + |
| 102 | + |
| 103 | +//// [/lib/src/sub-project-2/index.js] |
| 104 | +"use strict"; |
| 105 | +exports.__esModule = true; |
| 106 | +var variable = { |
| 107 | + key: 'value' |
| 108 | +}; |
| 109 | +function getVar() { |
| 110 | + return 'key'; |
| 111 | +} |
| 112 | +exports.getVar = getVar; |
| 113 | + |
| 114 | + |
| 115 | +//// [/lib/src/sub-project-2/tsconfig.tsbuildinfo] |
| 116 | +{ |
| 117 | + "program": { |
| 118 | + "fileInfos": { |
| 119 | + "../../lib.d.ts": { |
| 120 | + "version": "-32082413277-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }\ninterface ReadonlyArray<T> {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n", |
| 121 | + "signature": "-32082413277-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }\ninterface ReadonlyArray<T> {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n" |
| 122 | + }, |
| 123 | + "../../../src/common/nominal.ts": { |
| 124 | + "version": "-9513375615-export declare type Nominal<T, Name extends string> = T & {\r\n [Symbol.species]: Name;\r\n};\r\n", |
| 125 | + "signature": "-9513375615-export declare type Nominal<T, Name extends string> = T & {\r\n [Symbol.species]: Name;\r\n};\r\n" |
| 126 | + }, |
| 127 | + "../../../src/sub-project/index.ts": { |
| 128 | + "version": "-21416888433-import { Nominal } from '../common/nominal';\r\nexport declare type MyNominal = Nominal<string, 'MyNominal'>;\r\n", |
| 129 | + "signature": "-21416888433-import { Nominal } from '../common/nominal';\r\nexport declare type MyNominal = Nominal<string, 'MyNominal'>;\r\n" |
| 130 | + }, |
| 131 | + "../../../src/sub-project-2/index.ts": { |
| 132 | + "version": "-13939373533-import { MyNominal } from '../sub-project/index';\n\nconst variable = {\n key: 'value' as MyNominal,\n};\n\nexport function getVar(): keyof typeof variable {\n return 'key';\n}\n", |
| 133 | + "signature": "-17233212183-declare const variable: {\r\n key: import(\"../common/nominal\").Nominal<string, \"MyNominal\">;\r\n};\r\nexport declare function getVar(): keyof typeof variable;\r\nexport {};\r\n" |
| 134 | + } |
| 135 | + }, |
| 136 | + "options": { |
| 137 | + "skipLibCheck": true, |
| 138 | + "rootDir": "../../..", |
| 139 | + "outDir": "../..", |
| 140 | + "composite": true, |
| 141 | + "configFilePath": "../../../src/sub-project-2/tsconfig.json" |
| 142 | + }, |
| 143 | + "referencedMap": { |
| 144 | + "../../../src/sub-project-2/index.ts": [ |
| 145 | + "../sub-project/index.d.ts" |
| 146 | + ], |
| 147 | + "../../../src/sub-project/index.ts": [ |
| 148 | + "../common/nominal.d.ts" |
| 149 | + ] |
| 150 | + }, |
| 151 | + "exportedModulesMap": { |
| 152 | + "../../../src/sub-project-2/index.ts": [ |
| 153 | + "../common/nominal.d.ts" |
| 154 | + ], |
| 155 | + "../../../src/sub-project/index.ts": [ |
| 156 | + "../common/nominal.d.ts" |
| 157 | + ] |
| 158 | + }, |
| 159 | + "semanticDiagnosticsPerFile": [ |
| 160 | + "../../../src/common/nominal.ts", |
| 161 | + "../../../src/sub-project-2/index.ts", |
| 162 | + "../../../src/sub-project/index.ts", |
| 163 | + "../../lib.d.ts" |
| 164 | + ] |
| 165 | + }, |
| 166 | + "version": "FakeTSVersion" |
| 167 | +} |
| 168 | + |
0 commit comments