flowbite-angular
Version:
<div align="center"> <h1>:construction: flowbite-angular (unreleased) :construction:</h1> <p> <a href="https://flowbite.com"> <img alt="Flowbite - Tailwind CSS components" width="350" src="https://flowbite.s3.amazonaws.com/github/logo-github
60 lines (59 loc) • 1.52 kB
TypeScript
/**
* This class provide an implementation of Guid used as id for flowbite-angular components.
*
* @see https://gist.github.com/emptyother/1fd97db034ef848f38eca3354fa9ee90
*/
export declare class Guid {
private value;
/**
* If value is given and if the value is a valid Guid, then return a Guid from the string ; Otherwise or if no value is given, create a Guid class without value.
*
* @param value Guid as string if you want to get a Guid type from string
*/
constructor(value?: string);
/**
* Function that generate new Guid.
*
* @returns New Guid.
*/
static newGuid(): Guid;
/**
* Function that generate an empty Guid.
*
* @return "00000000-0000-0000-0000-000000000000".
*/
static get empty(): string;
/**
* Function that generate an empty Guid.
*
* @return "00000000-0000-0000-0000-000000000000".
*/
get empty(): string;
/**
* Check if the provided Guid is valid.
*
* @param str The Guid to check.
* @returns true if the Guid is valid ; false otherwise.
*/
static isValid(str: string): boolean;
/**
* ToString base method.
*
* @returns Value as string.
*/
toString(): string;
/**
* ToJson base method.
*
* @returns Value as Json compatible string.
*/
toJSON(): string;
}
/**
* Function that return a new Guid.
*
* @returns New {@link Guid}.
*
* @see `Guid`
*/
export declare function generateId(): Guid;