tsoid
Version:
Typed functional library to deal with async operations.
16 lines (15 loc) • 419 B
TypeScript
export interface User {
uid: string;
name: string;
email: string;
}
export declare function getUser(uid: string): Promise<User>;
export declare function getUserWithError(uid: string): Promise<User | Error>;
export declare function getUsers(): Promise<User[]>;
export declare function fetchData(): Promise<{
json(): Promise<{
uid: string;
name: string;
email: string;
}>;
}>;