@@ -4,7 +4,7 @@ import type { Denops } from "https://deno.land/x/denops_core@v4.0.0/mod.ts";
4
4
* An option that can be retrieved and modified.
5
5
* @template T The type of the option value.
6
6
*/
7
- export interface Option < T > {
7
+ export type Option < T > = {
8
8
/**
9
9
* Gets the value of the option.
10
10
* @returns A Promise that resolves to the value of the option.
@@ -23,13 +23,13 @@ export interface Option<T> {
23
23
* @returns A Promise that resolves when the option has been successfully reset.
24
24
*/
25
25
reset ( denops : Denops ) : Promise < void > ;
26
- }
26
+ } ;
27
27
28
28
/**
29
29
* A global option that can be retrieved and modified.
30
30
* @template T The type of the option value.
31
31
*/
32
- export interface GlobalOption < T > extends Option < T > {
32
+ export type GlobalOption < T > = Option < T > & {
33
33
/**
34
34
* Gets the global value of the option.
35
35
* @returns A Promise that resolves to the value of the option.
@@ -48,13 +48,13 @@ export interface GlobalOption<T> extends Option<T> {
48
48
* @returns A Promise that resolves when the option has been successfully reset.
49
49
*/
50
50
resetGlobal ( denops : Denops ) : Promise < void > ;
51
- }
51
+ } ;
52
52
53
53
/**
54
54
* A local option that can be retrieved and modified.
55
55
* @template T The type of the option value.
56
56
*/
57
- export interface LocalOption < T > extends Option < T > {
57
+ export type LocalOption < T > = Option < T > & {
58
58
/**
59
59
* Gets the local value of the option.
60
60
* @returns A Promise that resolves to the value of the option.
@@ -103,7 +103,7 @@ export interface LocalOption<T> extends Option<T> {
103
103
* @returns A Promise that resolves when the option has been successfully set.
104
104
*/
105
105
setWindow ( denops : Denops , winnr : number , value : T ) : Promise < void > ;
106
- }
106
+ } ;
107
107
108
108
/**
109
109
* A global or local option that can be retrieved and modified.
0 commit comments