mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 21:43:21 +00:00
Added type annotations to function parameters, function return values and local variables. Added neccessary `if` statements to enforce the objects having proper type before executing the later operations. An error type check in the catch block in `update_favicon` function is added because the statement in the catch block requires error to be a type `Error` in order to access `error.stack`.
10 lines
149 B
TypeScript
10 lines
149 B
TypeScript
declare module "*.svg" {
|
|
const url: string;
|
|
export default url;
|
|
}
|
|
|
|
declare module "*.ttf" {
|
|
const url: string;
|
|
export default url;
|
|
}
|