Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit 35d217d

Browse files
committed
Clean up
1 parent 6b9dc28 commit 35d217d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

types.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export interface Aleph {
1010
fetchModule(specifier: string): Promise<{ content: Uint8Array, contentType: string | null }>
1111
onResolve(test: RegExp, resolve: (specifier: string) => ResolveResult): void
1212
onLoad(test: RegExp, load: (input: LoadInput) => LoadOutput | Promise<LoadOutput>): void
13-
onTransform(test: 'hmr' | 'mainscript' | RegExp, transform: (input: TransformInput) => TransformOutput): void
13+
onTransform(test: 'hmr' | 'main' | RegExp, transform: (input: TransformInput) => TransformOutput): void
1414
onSSR(callback: (path: string, html: string) => { html: string }): void
1515
}
1616

@@ -64,7 +64,7 @@ type RouteBasicInfo = {
6464
}
6565

6666
/**
67-
* The result from the `onResolve` listener.
67+
* The result from the `onResolve` hook.
6868
*/
6969
export type ResolveResult = {
7070
specifier?: string
@@ -75,28 +75,28 @@ export type ResolveResult = {
7575
}
7676

7777
/**
78-
* The input to the `onLoad` listener.
78+
* The input to the `onLoad` hook.
7979
*/
8080
export type LoadInput = {
8181
specifier: string
8282
data?: any
8383
}
8484

8585
/**
86-
* The output of the `onLoad` listener.
86+
* The output of the `onLoad` hook.
8787
*/
8888
export type LoadOutput = {
8989
/** The transformed code type (default is 'js'). */
9090
type?: 'css' | 'js' | 'jsx' | 'ts' | 'tsx'
9191
/** The transformed code. */
9292
code: string
93-
/** The source map. */
93+
/** The source map if available. */
9494
map?: string
9595
}
9696

9797

9898
/**
99-
* The input to the `onTransform` listener.
99+
* The input to the `onTransform` hook.
100100
*/
101101
export type TransformInput = {
102102
specifier: string
@@ -105,7 +105,7 @@ export type TransformInput = {
105105
}
106106

107107
/**
108-
* The output of the `onTransform` listener.
108+
* The output of the `onTransform` hook.
109109
*/
110110
export type TransformOutput = {
111111
code: string

0 commit comments

Comments
 (0)