Skip to content

Commit

Permalink
feat(react:can): updates typescript declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
stalniy committed Sep 3, 2018
1 parent c40f6b7 commit 213dcde
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion packages/casl-ability/.npmrc

This file was deleted.

1 change: 0 additions & 1 deletion packages/casl-angular/.npmrc

This file was deleted.

1 change: 0 additions & 1 deletion packages/casl-aurelia/.npmrc

This file was deleted.

1 change: 0 additions & 1 deletion packages/casl-mongoose/.npmrc

This file was deleted.

1 change: 0 additions & 1 deletion packages/casl-react/.npmrc

This file was deleted.

5 changes: 5 additions & 0 deletions packages/casl-react/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ type BaseProps = {
} | {
I: string
a: string
} | {
I: string
an: string
} | {
I: string
of: any
Expand All @@ -18,11 +21,13 @@ type BaseProps = {
type CanPropsStrict = BaseProps & {
ability: Ability
not?: boolean
passThrough?: boolean
}

type CanProps = BaseProps & {
ability?: Ability
not?: boolean
passThrough?: boolean
}

declare class CanComponent<T> extends PureComponent<T> {
Expand Down
1 change: 0 additions & 1 deletion packages/casl-vue/.npmrc

This file was deleted.

0 comments on commit 213dcde

Please sign in to comment.