Skip to content

Commit

Permalink
feat: 🎸 export all types
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Feb 17, 2020
1 parent c5a64cf commit 23a1ade
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 7 deletions.
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import {CreateNano} from './types/nano';
export * from './types/nano';
export * from './types/common';
export const create: CreateNano;
14 changes: 7 additions & 7 deletions types/common.d.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import * as CSS from 'csstype';
import {Atoms} from '../addon/atoms';

interface CssProps extends CSS.Properties, CSS.PropertiesHyphen, Atoms {}
export interface CssProps extends CSS.Properties, CSS.PropertiesHyphen, Atoms {}

interface CssLikeObject extends CssProps {
export interface CssLikeObject extends CssProps {
[selector: string]: any | CssLikeObject;
}

type TDynamicCss = (css: CssLikeObject) => string;
type THyperstyleElement = object;
type THyperstyle = (...args) => THyperstyleElement;
type THyperscriptType = string | Function;
type THyperscriptComponent = Function;
export type TDynamicCss = (css: CssLikeObject) => string;
export type THyperstyleElement = object;
export type THyperstyle = (...args) => THyperstyleElement;
export type THyperscriptType = string | Function;
export type THyperscriptComponent = Function;
20 changes: 20 additions & 0 deletions types/nano.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,26 @@ import {GlobalAddon} from '../addon/global';
import {GoogleFontAddon} from '../addon/googleFont';
import {HydrateAddon} from '../addon/hydrate';

export * from '../addon/rule';
export * from '../addon/vcssom';
export * from '../addon/cssom';
export * from './common';
export * from '../addon/component';
export * from '../addon/decorator';
export * from '../addon/emmet';
export * from '../addon/sheet';
export * from '../addon/units';
export * from '../addon/keyframes';
export * from '../addon/amp';
export * from '../addon/array';
export * from '../addon/cache';
export * from '../addon/drule';
export * from '../addon/dsheet';
export * from '../addon/extract';
export * from '../addon/global';
export * from '../addon/googleFont';
export * from '../addon/hydrate';

export type Addons = RuleAddon &
SheetAddon &
ComponentAddon &
Expand Down

1 comment on commit 23a1ade

@streamich
Copy link
Owner Author

Choose a reason for hiding this comment

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

Build version: 5.2.1-types.128 🤞 types on CircleCI 🎉

Please sign in to comment.