Skip to content

Commit

Permalink
Merge 0fa472c into e82c3bc
Browse files Browse the repository at this point in the history
  • Loading branch information
Fleuv committed May 23, 2020
2 parents e82c3bc + 0fa472c commit 0a59fbb
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
declare module 'initials' {
type NameOrNames = string | string[];

type ParsedNames = {name: string, initials: string};

interface Options {
existing: {
[name: string]: string
}
}

function initials(nameOrNames: NameOrNames, options?: Options): string | string[];

export function find(name: string): string;

export function parse(name: string): ParsedNames | undefined;

export function addTo(name: string): string | undefined;

export = initials;
}

0 comments on commit 0a59fbb

Please sign in to comment.