Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,15 +184,16 @@ export class DiffPatcher {
unpatch: (right: any, delta: Delta) => any;
}

export const create: (options?: any) => DiffPatcher
export const create: (options?: any) => DiffPatcher;

export const formatters: {
annotated: Formatter;
console: Formatter;
html: HtmlFormatter;
jsonpatch: Formatter;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This actually probably isn't quite right because Formatter.format currently returns a string and according to #316 it returns an array of operations. We'll get this fixed up in a future PR.

};

export const console: Formatter
export const console: Formatter;

export const dateReviver: (key: string, value: any) => any;

Expand Down