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

typescript syntax supports #40

Open
4 tasks
HairyRabbit opened this issue Jan 2, 2018 · 1 comment
Open
4 tasks

typescript syntax supports #40

HairyRabbit opened this issue Jan 2, 2018 · 1 comment

Comments

@HairyRabbit
Copy link
Owner

HairyRabbit commented Jan 2, 2018

Link spec

Typescript SPEC

Different from flow

  • enmu
  • Object indexed name
  • keyof
  • extends
@zaaack
Copy link

zaaack commented Jan 2, 2018

// is
function isFn(fn: any): fn is Function {
  return typeof fn === 'function'
}

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

No branches or pull requests

2 participants