Show
Model
Utilities
getStructShow(deprecated)getTupleShow(deprecated)showBoolean(deprecated)showNumber(deprecated)showString(deprecated)- struct
- tuple
Model
Show
Signature
export interface Show<A> {
readonly show: (a: A) => string
}
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
Utilities
getStructShow
getStructShow
Use struct
instead.
Signature
export declare const getStructShow: <O extends ReadonlyRecord<string, any>>(shows: {
[K in keyof O]: Show<O[K]>
}) => Show<O>
Details
- Added in 0.1.0
- Deprecated
License
- MIT – Copyright (c) 2017-present Giulio Canti
getTupleShow
getTupleShow
Use tuple
instead.
Signature
export declare const getTupleShow: <T extends ReadonlyArray<Show<any>>>(
...shows: T
) => Show<{
[K in keyof T]: T[K] extends Show<infer A> ? A : never
}>
Details
- Added in 0.1.0
- Deprecated
License
- MIT – Copyright (c) 2017-present Giulio Canti
showBoolean
showBoolean
Use Show
instead.
Signature
export declare const showBoolean: Show<boolean>
Details
- Added in 0.1.0
- Deprecated
License
- MIT – Copyright (c) 2017-present Giulio Canti
showNumber
showNumber
Use Show
instead.
Signature
export declare const showNumber: Show<number>
Details
- Added in 0.1.0
- Deprecated
License
- MIT – Copyright (c) 2017-present Giulio Canti
showString
showString
Use Show
instead.
Signature
export declare const showString: Show<string>
Details
- Added in 0.1.0
- Deprecated
License
- MIT – Copyright (c) 2017-present Giulio Canti
struct
Signature
export declare const struct: <A>(shows: { [K in keyof A]: Show<A[K]> }) => Show<{ readonly [K_1 in keyof A]: A[K_1] }>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
tuple
Signature
export declare const tuple: <A extends readonly unknown[]>(
...shows: { [K in keyof A]: Show<A[K]> }
) => Show<Readonly<A>>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti