@dotup/dotup-ts-types
Version:
Typescript types and helper
24 lines (23 loc) • 468 B
TypeScript
export interface ITypedProperty<T> {
[key: string]: T;
}
export interface KeyValuePair<TKey, TValue> {
key: TKey;
value: TValue;
}
export interface IDisposable {
dispose(): void;
}
export interface IUrl {
href: string;
origin: string;
protocol: string;
username: string;
password: string;
host: string;
hostname: string;
port: number;
pathname: string;
search: string;
hash: string;
}