From 59e6c343d5645d547349721e9abfc5bb62ecdd80 Mon Sep 17 00:00:00 2001 From: Chris <1633711653@qq.com> Date: Mon, 29 Aug 2022 07:57:20 +0800 Subject: [PATCH] feat(unocss): improve unocss pkg types (#1484) --- packages/unocss/astro.d.ts | 2 ++ packages/unocss/preset-attributify.d.ts | 2 ++ packages/unocss/preset-icons.d.ts | 2 ++ packages/unocss/preset-mini.d.ts | 2 ++ packages/unocss/preset-tagify.d.ts | 2 ++ packages/unocss/preset-typography.d.ts | 2 ++ packages/unocss/preset-uno.d.ts | 2 ++ packages/unocss/preset-web-fonts.d.ts | 2 ++ packages/unocss/preset-wind.d.ts | 2 ++ packages/unocss/webpack.d.ts | 2 ++ 10 files changed, 20 insertions(+) create mode 100644 packages/unocss/astro.d.ts create mode 100644 packages/unocss/preset-attributify.d.ts create mode 100644 packages/unocss/preset-icons.d.ts create mode 100644 packages/unocss/preset-mini.d.ts create mode 100644 packages/unocss/preset-tagify.d.ts create mode 100644 packages/unocss/preset-typography.d.ts create mode 100644 packages/unocss/preset-uno.d.ts create mode 100644 packages/unocss/preset-web-fonts.d.ts create mode 100644 packages/unocss/preset-wind.d.ts create mode 100644 packages/unocss/webpack.d.ts diff --git a/packages/unocss/astro.d.ts b/packages/unocss/astro.d.ts new file mode 100644 index 0000000000..e679a9bf0f --- /dev/null +++ b/packages/unocss/astro.d.ts @@ -0,0 +1,2 @@ +export * from './dist/astro' +export { default } from './dist/astro' diff --git a/packages/unocss/preset-attributify.d.ts b/packages/unocss/preset-attributify.d.ts new file mode 100644 index 0000000000..2b54a3e080 --- /dev/null +++ b/packages/unocss/preset-attributify.d.ts @@ -0,0 +1,2 @@ +export * from './dist/preset-attributify' +export { default } from './dist/preset-attributify' diff --git a/packages/unocss/preset-icons.d.ts b/packages/unocss/preset-icons.d.ts new file mode 100644 index 0000000000..30f30c9a14 --- /dev/null +++ b/packages/unocss/preset-icons.d.ts @@ -0,0 +1,2 @@ +export * from './dist/preset-icons' +export { default } from './dist/preset-icons' diff --git a/packages/unocss/preset-mini.d.ts b/packages/unocss/preset-mini.d.ts new file mode 100644 index 0000000000..02ca65112e --- /dev/null +++ b/packages/unocss/preset-mini.d.ts @@ -0,0 +1,2 @@ +export * from './dist/preset-mini' +export { default } from './dist/preset-mini' diff --git a/packages/unocss/preset-tagify.d.ts b/packages/unocss/preset-tagify.d.ts new file mode 100644 index 0000000000..1474f23a19 --- /dev/null +++ b/packages/unocss/preset-tagify.d.ts @@ -0,0 +1,2 @@ +export * from './dist/preset-tagify' +export { default } from './dist/preset-tagify' diff --git a/packages/unocss/preset-typography.d.ts b/packages/unocss/preset-typography.d.ts new file mode 100644 index 0000000000..f3dc1ffd52 --- /dev/null +++ b/packages/unocss/preset-typography.d.ts @@ -0,0 +1,2 @@ +export * from './dist/preset-typography' +export { default } from './dist/preset-typography' diff --git a/packages/unocss/preset-uno.d.ts b/packages/unocss/preset-uno.d.ts new file mode 100644 index 0000000000..fc88e40213 --- /dev/null +++ b/packages/unocss/preset-uno.d.ts @@ -0,0 +1,2 @@ +export * from './dist/preset-uno' +export { default } from './dist/preset-uno' diff --git a/packages/unocss/preset-web-fonts.d.ts b/packages/unocss/preset-web-fonts.d.ts new file mode 100644 index 0000000000..5f4fd18f51 --- /dev/null +++ b/packages/unocss/preset-web-fonts.d.ts @@ -0,0 +1,2 @@ +export * from './dist/preset-web-fonts' +export { default } from './dist/preset-web-fonts' diff --git a/packages/unocss/preset-wind.d.ts b/packages/unocss/preset-wind.d.ts new file mode 100644 index 0000000000..8f0756c9f2 --- /dev/null +++ b/packages/unocss/preset-wind.d.ts @@ -0,0 +1,2 @@ +export * from './dist/perset-wind' +export { default } from './dist/perset-wind' diff --git a/packages/unocss/webpack.d.ts b/packages/unocss/webpack.d.ts new file mode 100644 index 0000000000..190a5fe396 --- /dev/null +++ b/packages/unocss/webpack.d.ts @@ -0,0 +1,2 @@ +export * from './dist/webpack' +export { default } from './dist/webpack'