chore: add missing return type (#4595)

This commit is contained in:
Asher Gomez 2024-04-16 20:03:12 +10:00 committed by GitHub
parent f57ac69735
commit 6e662cf978
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -260,7 +260,7 @@ export function diff<T>(A: T[], B: T[]): Array<DiffResult<T>> {
* @param A Actual string
* @param B Expected string
*/
export function diffstr(A: string, B: string) {
export function diffstr(A: string, B: string): DiffResult<string>[] {
function unescape(string: string): string {
// unescape invisible characters.
// ref: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String#escape_sequences