Skip to content

Added typescript definitions#1

Open
SachsKaylee wants to merge 2 commits intokieraneglin:masterfrom
SachsKaylee:master
Open

Added typescript definitions#1
SachsKaylee wants to merge 2 commits intokieraneglin:masterfrom
SachsKaylee:master

Conversation

@SachsKaylee
Copy link
Copy Markdown

No description provided.

Comment thread index.d.ts Outdated
Comment on lines +14 to +18
public transform(value: string, tramsform: OtDiff): string;
public insert(value: string, tramsform: OtDiff): string;
public delete(value: string, tramsform: OtDiff): string;
public replace(value: string, tramsform: OtDiff): string;
public noop(value: string, tramsform: OtDiff): string;
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

can tramsform please be changed to transform?

Comment thread index.d.ts Outdated
public noop(value: string, tramsform: OtDiff): string;
}

export interface IOtOpts {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

nit: Can this be renamed to just OtOpts to avoid Hungarian notation?

@kieraneglin
Copy link
Copy Markdown
Owner

Thank you for the PR! I've left some comments but this is a welcome addition.

@SachsKaylee
Copy link
Copy Markdown
Author

I'm sorry, I must have missed the notification :)
I fixed your comments and also made an adjustment in the export to make it compatible with the latest TypeScript versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants