Skip to content

Commit

Permalink
feat: improved type declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
cdimascio committed Dec 25, 2020
1 parent acf01ed commit ee26ce5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/index.d.ts
@@ -1,14 +1,14 @@
import { Binary } from "mongodb";

export type MUUID = Binary;
export type MODE = {
export type Mode = {
v1: () => MUUID,
v4: () => MUUID,
from: (uuid: string | Binary) => MUUID,
mode: MODE
mode: Mode
}

export const v1: () => MUUID;
export const v4: () => MUUID;
export const from: (uuid: string | Binary) => MUUID;
export const mode: (mode: 'canonical'| 'relaxed') => MODE;
export const mode: (mode: 'canonical'| 'relaxed') => Mode;

0 comments on commit ee26ce5

Please sign in to comment.