default: { add: ( link: { email: string; type: string; userid?: string }, ) => Promise<INewLink>; del: (link: { id: string }) => Promise<void>; get: <T extends TLinkGet>( id: string, data: T, ) => Promise<undefined | ILink<T>>;} = ... Type declaration
add: (link: { email: string; type: string; userid?: string }) => Promise<INewLink>
del: (link: { id: string }) => Promise<void>
get: <T extends TLinkGet>(id: string, data: T) => Promise<undefined | ILink<T>>