Skip to content

Commit 7e85a10

Browse files
committed
fix ScramjetInitConfig requiring all flags to be set
1 parent f6ee46d commit 7e85a10

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/types.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ export interface ScramjetConfig {
6363
};
6464
}
6565

66-
export interface ScramjetInitConfig extends Omit<ScramjetConfig, "codec"> {
66+
export interface ScramjetInitConfig
67+
extends Omit<ScramjetConfig, "codec" | "flags"> {
68+
flags: Partial<ScramjetFlags>;
6769
codec: {
6870
encode: (url: string) => string;
6971
decode: (url: string) => string;

0 commit comments

Comments
 (0)