@veltdev/types
Version:
Velt is an SDK to add collaborative features to your product within minutes. Example: Comments like Figma, Frame.io, Google docs or sheets, Recording like Loom, Huddles like Slack and much more.
13 lines (12 loc) • 324 B
TypeScript
export interface EncryptConfig<T = any> {
data: T;
type?: string;
}
export interface DecryptConfig<R = any> {
data: R;
type?: string;
}
export interface VeltEncryptionProvider<T = any, R = any> {
encrypt: (config: EncryptConfig<T>) => Promise<R>;
decrypt: (config: DecryptConfig<R>) => Promise<T>;
}