File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -4,13 +4,15 @@ import * as controller from "../dist/types/controller/index.ts";
44import * as worker from "../dist/types/worker/index.ts" ;
55import * as types from "../dist/types/types.ts" ;
66import * as frame from "../dist/types/controller/frame.ts" ;
7+ import { ScramjetClient as _ScramjetClient } from "../dist/types/client/client.ts" ;
78
89declare global {
910 function $scramjetLoadController ( ) : typeof controller ;
1011 function $scramjetLoadWorker ( ) : typeof worker ;
1112 function $scramjetLoadClient ( config : ScramjetConfig ) ;
1213 type ScramjetController = controller . ScramjetController ;
1314 type ScramjetFrame = frame . ScramjetFrame ;
15+ type ScramjetClient = _ScramjetClient ;
1416
1517 type ScramjetConfig = types . ScramjetConfig ;
1618 type ScramjetInitConfig = types . ScramjetInitConfig ;
Original file line number Diff line number Diff line change @@ -11,18 +11,21 @@ export type ScramjetEvents = {
1111} ;
1212
1313export class NavigateEvent extends Event {
14+ type = "navigate" ;
1415 constructor ( public url : string ) {
1516 super ( "navigate" ) ;
1617 }
1718}
1819
1920export class UrlChangeEvent extends Event {
21+ type = "urlchange" ;
2022 constructor ( public url : string ) {
2123 super ( "urlchange" ) ;
2224 }
2325}
2426
2527export class ScramjetContextEvent extends Event {
28+ type = "contextInit" ;
2629 constructor (
2730 public window : Self ,
2831 public client : ScramjetClient
You can’t perform that action at this time.
0 commit comments