Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added typescript definitions #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

SachsKaylee
Copy link

No description provided.

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
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?

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

export interface IOtOpts {
Copy link
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
Owner

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

@SachsKaylee
Copy link
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