keyvalue.d.ts 461 B

1234567891011121314151617
  1. interface IKV {
  2. [key: string]: any;
  3. }
  4. export declare class SortedKeyValue {
  5. private _keys;
  6. private _values;
  7. private _pairs;
  8. private _obj;
  9. static kv(obj: IKV, selectkeys?: string[]): SortedKeyValue;
  10. constructor(obj: IKV, selectkeys?: string[]);
  11. get(key: string): any;
  12. keys(): string[];
  13. values(): string[];
  14. pairs(): Array<[string, any]>;
  15. toString(kvSeparator?: string, joinSeparator?: string): string;
  16. }
  17. export {};