@kit-data-manager/pid-component
Version:
The PID-Component is a web component that can be used to evaluate and display FAIR Digital Objects, PIDs, ORCiDs, and possibly other identifiers in a user-friendly way. It is easily extensible to support other identifier types.
20 lines (19 loc) • 578 B
TypeScript
import { PIDRecord } from './PIDRecord';
export declare class PID {
private readonly _prefix;
private readonly _suffix;
constructor(prefix: string, suffix: string);
get prefix(): string;
get suffix(): string;
static isPID(text: string): boolean;
static getPIDFromString(pid: string): PID;
static fromJSON(serialized: string): PID;
toString(): string;
isResolvable(): boolean;
resolve(): Promise<PIDRecord | undefined>;
toObject(): {
prefix: string;
suffix: string;
};
}
export declare const locationType: PID;