DefinitelyTyped/types/skatejs/index.d.ts
Martin Hochel 91ad651732 feat(skatejs): add skatejs library types (#22006)
* feat(skatejs) add skatejs types

- fix(skatejs): udpate tsconfig and fix imports in tests
- fix(skatejs): make test pass
- feat(skatejs): update to latest api's and add more tests
- refactor(skatejs): remove tsx extension as skate is not using VDom at all
- fix(skatejs): fix ts next strict errors
- ci(skatejs): explicitly use files cause include is not allowed
- refactor(skatejs): rename tests folder to test
- fix(skatejs): don't use strict within tsconfig
- fix(skatejs): fix lint errors
- fix(skatejs): use standard dtslint rules without overrides

* fix(skatejs): downgrade required TS version

* refactor(skatejs): improve PropOptions interface by making it generic

* ci(skatejs): mitigate failing build
2018-01-17 10:09:36 -08:00

29 lines
761 B
TypeScript

// Type definitions for skatejs 5.0
// Project: https://github.com/skatejs/skatejs
// Definitions by: Martin Hochel <https://github.com/Hotell>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
export as namespace skate;
// Public API: mixins
export { withComponent, withLifecycle, withContext, withChildren, withUpdate, withRenderer } from './api';
// Public API: utils
export { prop, props, link, define, emit, shadow, name } from './api';
// Public types ( Unfortunately TS doesn't have Opaque Types like Flow )
export {
Constructor,
CustomElement,
ComponentProps,
PropOptions,
Renderer,
WithComponent,
WithLifecycle,
WithContext,
WithChildren,
WithUpdate,
WithRenderer
} from './types';