@@ -81,8 +81,8 @@ export const main: Entrypoint = (denops: Denops) => {
8181 arg2 : unknown ,
8282 arg3 : unknown ,
8383 ) : Promise < void > {
84- const type = ensure ( arg1 , is . String ) as string ;
85- const extName = ensure ( arg2 , is . String ) as string ;
84+ const type = ensure ( arg1 , is . String ) ;
85+ const extName = ensure ( arg2 , is . String ) ;
8686
8787 switch ( type ) {
8888 case "ui" :
@@ -113,30 +113,30 @@ export const main: Entrypoint = (denops: Denops) => {
113113 } ,
114114 setFiletype ( arg1 : unknown , arg2 : unknown ) : Promise < void > {
115115 const options = ensure ( arg1 , is . Record ) as Partial < DdcOptions > ;
116- const filetype = ensure ( arg2 , is . String ) as string ;
116+ const filetype = ensure ( arg2 , is . String ) ;
117117 contextBuilder . setFiletype ( filetype , options ) ;
118118 return Promise . resolve ( ) ;
119119 } ,
120120 setBuffer ( arg1 : unknown , arg2 : unknown ) : Promise < void > {
121121 const options = ensure ( arg1 , is . Record ) as Partial < DdcOptions > ;
122- const bufnr = ensure ( arg2 , is . Number ) as number ;
122+ const bufnr = ensure ( arg2 , is . Number ) ;
123123 contextBuilder . setBuffer ( bufnr , options ) ;
124124 return Promise . resolve ( ) ;
125125 } ,
126126 setContextGlobal ( arg1 : unknown ) : Promise < void > {
127- const callback = ensure ( arg1 , is . String ) as string ;
127+ const callback = ensure ( arg1 , is . String ) ;
128128 contextBuilder . setContextGlobal ( callback ) ;
129129 return Promise . resolve ( ) ;
130130 } ,
131131 setContextFiletype ( arg1 : unknown , arg2 : unknown ) : Promise < void > {
132- const callback = ensure ( arg1 , is . String ) as string ;
133- const filetype = ensure ( arg2 , is . String ) as string ;
132+ const callback = ensure ( arg1 , is . String ) ;
133+ const filetype = ensure ( arg2 , is . String ) ;
134134 contextBuilder . setContextFiletype ( callback , filetype ) ;
135135 return Promise . resolve ( ) ;
136136 } ,
137137 setContextBuffer ( arg1 : unknown , arg2 : unknown ) : Promise < void > {
138- const callback = ensure ( arg1 , is . String ) as string ;
139- const bufnr = ensure ( arg2 , is . Number ) as number ;
138+ const callback = ensure ( arg1 , is . String ) ;
139+ const bufnr = ensure ( arg2 , is . Number ) ;
140140 contextBuilder . setContextBuffer ( callback , bufnr ) ;
141141 return Promise . resolve ( ) ;
142142 } ,
@@ -147,7 +147,7 @@ export const main: Entrypoint = (denops: Denops) => {
147147 } ,
148148 patchFiletype ( arg1 : unknown , arg2 : unknown ) : Promise < void > {
149149 const options = ensure ( arg1 , is . Record ) as Partial < DdcOptions > ;
150- const filetype = ensure ( arg2 , is . String ) as string ;
150+ const filetype = ensure ( arg2 , is . String ) ;
151151 contextBuilder . patchFiletype ( filetype , options ) ;
152152 return Promise . resolve ( ) ;
153153 } ,
@@ -190,7 +190,7 @@ export const main: Entrypoint = (denops: Denops) => {
190190 } ,
191191 async loadConfig ( arg1 : unknown ) : Promise < void > {
192192 await lock . lock ( async ( ) => {
193- const path = ensure ( arg1 , is . String ) as string ;
193+ const path = ensure ( arg1 , is . String ) ;
194194 try {
195195 const mod = await importPlugin ( path ) ;
196196 // deno-lint-ignore no-explicit-any
@@ -232,7 +232,7 @@ export const main: Entrypoint = (denops: Denops) => {
232232 await ddc . doCompletion ( denops , context , cbContext , options ) ;
233233 } ,
234234 async updateItems ( arg1 : unknown , arg2 : unknown ) : Promise < void > {
235- const name = ensure ( arg1 , is . String ) as string ;
235+ const name = ensure ( arg1 , is . String ) ;
236236 const items = ensure ( arg2 , is . Array ) as Item [ ] ;
237237
238238 ddc . updateItems ( name , items ) ;
@@ -288,7 +288,7 @@ export const main: Entrypoint = (denops: Denops) => {
288288 ) ;
289289 } ,
290290 async show ( arg1 : unknown ) : Promise < void > {
291- const ui = ensure ( arg1 , is . String ) as string ;
291+ const ui = ensure ( arg1 , is . String ) ;
292292
293293 const [ _ , context , options ] = await contextBuilder . createContext (
294294 denops ,
@@ -328,7 +328,7 @@ export const main: Entrypoint = (denops: Denops) => {
328328 BaseParams ,
329329 ]
330330 > {
331- const filterName = ensure ( arg1 , is . String ) as string ;
331+ const filterName = ensure ( arg1 , is . String ) ;
332332 const [ _ , _context , options ] = await contextBuilder . createContext (
333333 denops ,
334334 "Manual" ,
0 commit comments