Skip to content

Commit

Permalink
refactor: types
Browse files Browse the repository at this point in the history
  • Loading branch information
cossssmin committed Jul 25, 2024
1 parent a96bf00 commit 6e59b4f
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 303 deletions.
2 changes: 2 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
"posthtml-base-url": "^3.1.4",
"posthtml-component": "^2.0.0",
"posthtml-content": "^2.1.0",
"posthtml-expressions": "^1.11.4",
"posthtml-extra-attributes": "^3.1.0",
"posthtml-fetch": "^4.0.0",
"posthtml-markdownit": "^3.1.0",
Expand Down
6 changes: 3 additions & 3 deletions types/build.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SpinnerName } from 'cli-spinners';
import type ExpressionsConfig from './expressions';
import type { PostHTMLExpressions } from 'posthtml-expressions';

export default interface BuildConfig {
/**
Expand All @@ -19,9 +19,9 @@ export default interface BuildConfig {
content?: string[];

/**
Configure expressions.
Configure [posthtml-expressions](https://github.com/posthtml/posthtml-expressions) options.
*/
expressions?: ExpressionsConfig;
expressions?: PostHTMLExpressions;

/**
* Define the output path for compiled Templates, and what file extension they should use.
Expand Down
195 changes: 0 additions & 195 deletions types/components.d.ts

This file was deleted.

4 changes: 2 additions & 2 deletions types/config.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import type PurgeCSSConfig from './css/purge';
import type PlaintextConfig from './plaintext';
import type CSSInlineConfig from './css/inline';
import type { SpinnerName } from 'cli-spinners';
import type ComponentsConfig from './components';
import type WidowWordsConfig from './widowWords';
import type { CoreBeautifyOptions } from 'js-beautify';
import type { BaseURLConfig } from 'posthtml-base-url';
import type URLParametersConfig from './urlParameters';
import type { PostHTMLComponents } from 'posthtml-component';

import type { Config as TailwindConfig } from 'tailwindcss';

Expand Down Expand Up @@ -93,7 +93,7 @@ export default interface Config {
/**
* Configure components.
*/
components?: ComponentsConfig;
components?: PostHTMLComponents;

/**
* Configure how CSS is handled.
Expand Down
100 changes: 0 additions & 100 deletions types/expressions.d.ts

This file was deleted.

6 changes: 3 additions & 3 deletions types/posthtml.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Directive } from 'posthtml-parser';
import type ExpressionsConfig from './expressions';
import type { PostHTMLExpressions } from 'posthtml-expressions';

export interface PostHTMLOptions {
/**
Expand Down Expand Up @@ -128,9 +128,9 @@ export interface PostHTMLOptions {

export default interface PostHTMLConfig {
/**
Configure expressions.
Configure [posthtml-expressions](https://github.com/posthtml/posthtml-expressions) options.
*/
expressions?: ExpressionsConfig;
expressions?: PostHTMLExpressions;

/**
Configure PostHTML options.
Expand Down

0 comments on commit 6e59b4f

Please sign in to comment.