From 23a1adeeb8f436b108644ee9fb1b2c83dc2265b4 Mon Sep 17 00:00:00 2001 From: streamich Date: Mon, 17 Feb 2020 09:21:06 +0100 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20export=20all=20types?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.d.ts | 1 + types/common.d.ts | 14 +++++++------- types/nano.d.ts | 20 ++++++++++++++++++++ 3 files changed, 28 insertions(+), 7 deletions(-) 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 &