@waiting/shared-types
Advanced tools
Comparing version 18.0.0 to 18.1.1
export * from './lib/index.js'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -22,1 +22,2 @@ export declare type BigIntStr = bigint | string; | ||
export {}; | ||
//# sourceMappingURL=alias.d.ts.map |
@@ -99,1 +99,2 @@ export declare type ToTuple<T> = T extends any[] ? T : any[]; | ||
export {}; | ||
//# sourceMappingURL=common.d.ts.map |
@@ -32,8 +32,2 @@ /** Value of key-value pairs object */ | ||
}); | ||
/** | ||
* Pick type T from Promise<T> | ||
* @deprecated use native since TypeScript 4.5 | ||
* @link https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-5.html#the-awaited-type-and-promise-improvements | ||
* @link https://devblogs.microsoft.com/typescript/announcing-typescript-4-1/#recursive-conditional-types | ||
*/ | ||
export declare type Awaited<T> = T extends PromiseLike<infer U> ? Awaited<U> : T; | ||
//# sourceMappingURL=data.d.ts.map |
@@ -11,1 +11,2 @@ export * from './alias.js'; | ||
export * from './web.js'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -58,1 +58,2 @@ /** | ||
} | ||
//# sourceMappingURL=npm-pkg.d.ts.map |
@@ -76,1 +76,2 @@ /** | ||
} | ||
//# sourceMappingURL=stats.d.ts.map |
@@ -27,1 +27,2 @@ export declare type StrSplit<S extends string, D extends string> = string extends S ? string[] : S extends `${infer T}${D}${infer U}` ? [T, ...StrSplit<U, D>] : [ | ||
export {}; | ||
//# sourceMappingURL=template-literal.d.ts.map |
export declare type TrimStart<T extends string, K extends string = ' '> = T extends `${K}${infer Rest}` ? TrimStart<Rest, K> : T; | ||
export declare type TrimEnd<T extends string, K extends string = ' '> = T extends `${infer Rest}${K}` ? TrimEnd<Rest, K> : T; | ||
export declare type Trim<T extends string, K extends string = ' '> = TrimStart<TrimEnd<T, K>, K>; | ||
//# sourceMappingURL=trim.d.ts.map |
@@ -27,3 +27,3 @@ /** Get the first element */ | ||
*/ | ||
export declare type isInLiteralTuple<T extends (string | number | symbol)[], K extends string | number | symbol> = Extract<T[number], K> extends never ? false : true; | ||
export declare type isInLiteralTuple<T extends (string | number | symbol)[], K extends string | number | symbol> = [Extract<T[number], K>] extends [never] ? false : true; | ||
export declare type TupleToUnion<T extends unknown[]> = T[number]; | ||
@@ -36,1 +36,2 @@ export declare type Reverse<Tuple extends any[]> = Reverse_<Tuple, []>; | ||
export {}; | ||
//# sourceMappingURL=tuple.d.ts.map |
@@ -10,1 +10,2 @@ /** | ||
export declare type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends ((k: infer I) => void) ? I : never; | ||
//# sourceMappingURL=union.d.ts.map |
@@ -31,1 +31,2 @@ import { XOR } from './common.js'; | ||
export declare type MiddlewarePathPattern = (string | RegExp | PathPatternFunc)[]; | ||
//# sourceMappingURL=web.d.ts.map |
{ | ||
"name": "@waiting/shared-types", | ||
"author": "waiting", | ||
"version": "18.0.0", | ||
"version": "18.1.1", | ||
"description": "shared typescript types", | ||
"keywords": [ | ||
"types", | ||
"ESM", | ||
"typescript", | ||
@@ -14,3 +15,3 @@ "ts" | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"types": "./dist/index.d.ts", | ||
"exports": { | ||
@@ -68,3 +69,3 @@ ".": { | ||
}, | ||
"gitHead": "77600aed11ba6cda4ca01469e3085d9564307953" | ||
"gitHead": "6d7422b3e4f987fd6e98764e91be40e6e86785d1" | ||
} |
@@ -5,5 +5,8 @@ { | ||
"declaration": true, | ||
"declarationMap": true, | ||
"emitDecoratorMetadata": true, | ||
"esModuleInterop": true, | ||
"exactOptionalPropertyTypes": true, | ||
"experimentalDecorators": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"incremental": true, | ||
@@ -14,2 +17,4 @@ "module": "ESNext", | ||
"noFallthroughCasesInSwitch": true, | ||
"noImplicitOverride": true, | ||
"noPropertyAccessFromIndexSignature": true, | ||
"noUncheckedIndexedAccess": true, | ||
@@ -19,3 +24,5 @@ "noUnusedLocals": true, | ||
"outDir": "dist", | ||
"preserveConstEnums": true, | ||
"pretty": true, | ||
"resolveJsonModule": true, | ||
"skipLibCheck": true, | ||
@@ -30,2 +37,9 @@ "sourceMap": false, | ||
}, | ||
"ts-node": { | ||
"esm": true, | ||
"experimentalResolver": true, | ||
"experimentalSpecifierResolution": "node", | ||
"preferTsExts": true, | ||
"swc": true | ||
}, | ||
"include": [ | ||
@@ -32,0 +46,0 @@ "src/**/*.ts" |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36802
43
498