Skip to content

Commit f42464a

Browse files
committed
Mark all deprecated functions as optional
1 parent e18d301 commit f42464a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

typings/eslint/index.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -334,22 +334,22 @@ export namespace Rule {
334334
/** @deprecated removed in ESLint v9 */
335335
getDeclaredVariables?(node: VAST.ESNode): Scope.Variable[]
336336
/** @deprecated removed in ESLint v10 */
337-
getFilename(): string
337+
getFilename?(): string
338338
filename: string
339339
/** @deprecated removed in ESLint v10 */
340-
getPhysicalFilename(): string
340+
getPhysicalFilename?(): string
341341
physicalFilename: string
342342
/** @deprecated removed in ESLint v9 */
343343
getScope?(): Scope.Scope
344344
/** @deprecated removed in ESLint v10 */
345-
getSourceCode(): SourceCode
345+
getSourceCode?(): SourceCode
346346
sourceCode: SourceCode
347347
/** @deprecated removed in ESLint v9 */
348-
markVariableAsUsed(name: string): boolean
348+
markVariableAsUsed?(name: string): boolean
349349
report(descriptor: ReportDescriptor): void
350350

351351
/** @deprecated removed in ESLint v10 */
352-
getCwd: () => string
352+
getCwd?: () => string
353353
cwd: string
354354
}
355355

0 commit comments

Comments
 (0)