mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-31 20:43:43 +00:00
wip: Creating an sdk builder that has all the generics we need in one place
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
export declare const wrapperDataContractType: unique symbol
|
||||
export type WrapperDataContract<A> = {
|
||||
[wrapperDataContractType]: A
|
||||
}
|
||||
export const neverWrapperDataContract: WrapperDataContract<never> = null as any
|
||||
/**
|
||||
* Used to indicate the type of the wrapper data. To be used in areas where
|
||||
* we need to know the wrapper data value
|
||||
*/
|
||||
export function createWrapperDataContract<A = never>(): A extends never
|
||||
? "Wrapper Data Contract must be created with a generic"
|
||||
: WrapperDataContract<A> {
|
||||
return null as any
|
||||
}
|
||||
Reference in New Issue
Block a user