1
1
import { DevServerConfig } from '@web/dev-server' ;
2
2
import { CheckHtmlLinksCliOptions } from 'check-html-links/dist-types/types/main' ;
3
3
import { WatchOptions } from 'chokidar' ;
4
- export { ImagePreset , RocketPreset } from './preset' ;
4
+ import { ImagePreset , RocketPreset } from './preset' ;
5
+ export { ImagePreset , RocketPreset } ;
6
+ import { Eleventy } from '@11ty/eleventy' ;
5
7
6
8
interface RocketStartConfig {
7
9
createSocialMediaImages ?: boolean ;
@@ -47,12 +49,12 @@ export interface RocketCliOptions extends Pick<RocketPreset, PresetKeys> {
47
49
configFile ?: string ;
48
50
outputDevDir ?: string ;
49
51
50
- private _inputDirCwdRelative ?: string ;
51
- private _presetPaths ?: string [ ] ;
52
- private __before11tyFunctions ?: ( ( ) => void | Promise < void > ) [ ] ;
52
+ _inputDirCwdRelative ?: string ;
53
+ _presetPaths ?: string [ ] ;
54
+ __before11tyFunctions ?: ( ( ) => void | Promise < void > ) [ ] ;
53
55
}
54
56
55
- export interface RocketPlugin {
57
+ export type RocketPlugin = {
56
58
// what can we do, typescript itself types the constructor as `Function`
57
59
// eslint-disable-next-line @typescript-eslint/ban-types
58
60
constructor : Function & { pluginName : string } ;
@@ -69,7 +71,8 @@ export interface RocketPlugin {
69
71
data : any ;
70
72
eleventy : Eleventy ;
71
73
} ) : Promise < void > ;
74
+ } & {
72
75
// later ts versions can do this
73
76
// [index: `${string}Command`]: () => void|Promise<void>;
74
77
[ index : string ] : ( ) => void | Promise < void > ;
75
- }
78
+ } ;
0 commit comments