chore: remove deprecated usage of String.prototype.substr (#4699)
This commit is contained in:
7
packages/global.d.ts
vendored
7
packages/global.d.ts
vendored
@@ -45,3 +45,10 @@ declare module '@vue/repl' {
|
||||
const ReplStore: any
|
||||
export { Repl, ReplStore }
|
||||
}
|
||||
|
||||
declare interface String {
|
||||
/**
|
||||
* @deprecated Please use String.prototype.slice instead of String.prototype.substring in the repository.
|
||||
*/
|
||||
substring(start: number, end?: number): string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user