Skip to content

Commit 57a8fcb

Browse files
committed
💪 Change option define position
1 parent b8579b8 commit 57a8fcb

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

denops_std/buffer/buffer.ts

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -97,19 +97,6 @@ async function ensurePrerequisites(denops: Denops): Promise<string> {
9797
return suffix;
9898
}
9999

100-
export type OpenOptions = {
101-
mods?: string;
102-
cmdarg?: string;
103-
opener?: string;
104-
};
105-
106-
export type OpenResult = {
107-
winid: number;
108-
bufnr: number;
109-
winnr: number;
110-
tabpagenr: number;
111-
};
112-
113100
/**
114101
* Open a buffer
115102
*/
@@ -131,6 +118,19 @@ export async function open(
131118
) as OpenResult;
132119
}
133120

121+
export type OpenOptions = {
122+
mods?: string;
123+
cmdarg?: string;
124+
opener?: string;
125+
};
126+
127+
export type OpenResult = {
128+
winid: number;
129+
bufnr: number;
130+
winnr: number;
131+
tabpagenr: number;
132+
};
133+
134134
/**
135135
* Edit a buffer
136136
*/
@@ -142,11 +142,6 @@ export async function reload(denops: Denops, bufnr: number): Promise<void> {
142142
);
143143
}
144144

145-
export type ReplaceOptions = {
146-
fileformat?: string;
147-
fileencoding?: string;
148-
};
149-
150145
/**
151146
* Replace the buffer content
152147
*/
@@ -166,10 +161,9 @@ export async function replace(
166161
);
167162
}
168163

169-
export type AssignOptions = {
164+
export type ReplaceOptions = {
170165
fileformat?: string;
171166
fileencoding?: string;
172-
preprocessor?: (repl: string[]) => string[];
173167
};
174168

175169
/**
@@ -214,6 +208,12 @@ export async function assign(
214208
});
215209
}
216210

211+
export type AssignOptions = {
212+
fileformat?: string;
213+
fileencoding?: string;
214+
preprocessor?: (repl: string[]) => string[];
215+
};
216+
217217
/**
218218
* Concrete the buffer.
219219
*

0 commit comments

Comments
 (0)