Start new validation system and zodified types with excc
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-01-14 01:04:13 -06:00
parent b105a61ca2
commit 5ffb91329e
8 changed files with 110 additions and 2 deletions

View File

@@ -23,3 +23,10 @@ export function isKeyof<T>(key: unknown, obj: T): key is keyof T {
export function hasOwnProperty<X extends {}, Y extends PropertyKey>(obj: X, prop: Y): obj is X & Record<Y, unknown> { // eslint-disable-line @typescript-eslint/ban-types
return Object.hasOwnProperty.call(obj, prop)
}
/**
* TypeScript helper for creating tagged-types.
*/
export interface TypeTag<S extends string> {
readonly __typeTag: S
}