Skip to content

Commit a693929

Browse files
committed
chore: use types
1 parent 1ce9aa0 commit a693929

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/resources/resource.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ import { LogId } from "../common/logger.js";
88

99
type PayloadOf<K extends keyof SessionEvents> = SessionEvents[K][0];
1010

11-
export interface ResourceConfiguration {
11+
export type ResourceConfiguration = {
1212
name: string;
1313
uri: string;
1414
config: ResourceMetadata;
15-
}
15+
};
1616

17-
export interface ReactiveResourceOptions<Value, RelevantEvents extends readonly (keyof SessionEvents)[]> {
17+
export type ReactiveResourceOptions<Value, RelevantEvents extends readonly (keyof SessionEvents)[]> = {
1818
initial: Value;
1919
events: RelevantEvents;
20-
}
20+
};
2121

2222
export abstract class ReactiveResource<Value, RelevantEvents extends readonly (keyof SessionEvents)[]> {
2323
protected readonly session: Session;

0 commit comments

Comments
 (0)