diff --git a/index.d.ts b/index.d.ts index f3e0dc51..bb18ea01 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,3 +1,4 @@ import {CreateNano} from './types/nano'; export * from './types/nano'; +export * from './types/common'; export const create: CreateNano; diff --git a/types/common.d.ts b/types/common.d.ts index 8d310874..adda0c10 100644 --- a/types/common.d.ts +++ b/types/common.d.ts @@ -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; diff --git a/types/nano.d.ts b/types/nano.d.ts index 5899b1f4..940fef93 100644 --- a/types/nano.d.ts +++ b/types/nano.d.ts @@ -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 &