node-appwrite
Version:
Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API
23 lines (21 loc) • 472 B
text/typescript
/**
* Helper class to generate ID strings for resources.
*/
declare class ID {
#private;
/**
* Uses the provided ID as the ID for the resource.
*
* @param {string} id
* @returns {string}
*/
static custom(id: string): string;
/**
* Have Appwrite generate a unique ID for you.
*
* @param {number} padding. Default is 7.
* @returns {string}
*/
static unique(padding?: number): string;
}
export { ID };