@faast/ts-common
Advanced tools
Comparing version 0.4.1 to 0.4.2
import * as t from 'io-ts'; | ||
export declare function instanceofCodec<T>(con: { | ||
new (): T; | ||
new (...args: any[]): T; | ||
}): t.Type<T>; | ||
@@ -5,0 +5,0 @@ export declare function partialRecord<KS extends t.KeyofType<any>, T extends t.Any>(k: KS, type: T, name?: string): t.PartialC<Record<keyof KS['keys'], T>>; |
{ | ||
"name": "@faast/ts-common", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"description": "Common typescript types and utils used by faast", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -5,3 +5,3 @@ import * as t from 'io-ts' | ||
export function instanceofCodec<T>(con: { new (): T }): t.Type<T> { | ||
export function instanceofCodec<T>(con: { new (...args: any[]): T }): t.Type<T> { | ||
return new t.Type( | ||
@@ -8,0 +8,0 @@ `instanceof(${con.name})`, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
646481