@@ -176,7 +176,7 @@ async function ensurePrerequisites(denops: Denops): Promise<string> {
176
176
export async function open (
177
177
denops : Denops ,
178
178
bufname : string ,
179
- options : OpenOptions = { } ,
179
+ options : Readonly < OpenOptions > = { } ,
180
180
) : Promise < OpenResult > {
181
181
const suffix = await ensurePrerequisites ( denops ) ;
182
182
const bang = options . bang ?? false ;
@@ -259,7 +259,7 @@ export async function decode(
259
259
denops : Denops ,
260
260
bufnr : number ,
261
261
data : Uint8Array ,
262
- options : DecodeOptions = { } ,
262
+ options : Readonly < DecodeOptions > = { } ,
263
263
) : Promise < DecodeResult > {
264
264
const [ fileformat , fileformatsStr , fileencodingsStr ] = await batch . collect (
265
265
denops ,
@@ -321,8 +321,8 @@ export interface DecodeResult {
321
321
export async function append (
322
322
denops : Denops ,
323
323
bufnr : number ,
324
- repl : string [ ] ,
325
- options : AppendOptions = { } ,
324
+ repl : readonly string [ ] ,
325
+ options : Readonly < AppendOptions > = { } ,
326
326
) : Promise < void > {
327
327
const suffix = await ensurePrerequisites ( denops ) ;
328
328
const lnum = options . lnum ??
@@ -361,8 +361,8 @@ export interface AppendOptions {
361
361
export async function replace (
362
362
denops : Denops ,
363
363
bufnr : number ,
364
- repl : string [ ] ,
365
- options : ReplaceOptions = { } ,
364
+ repl : readonly string [ ] ,
365
+ options : Readonly < ReplaceOptions > = { } ,
366
366
) : Promise < void > {
367
367
const suffix = await ensurePrerequisites ( denops ) ;
368
368
await denops . call (
0 commit comments