refactor: Mark optional parameters as optional. (#6380)

* refactor: Mark optional params as optional.

* refactor: Slightly narrow the typing of rendererOverrides.
This commit is contained in:
Aaron Dodson
2022-08-24 13:19:37 -07:00
committed by GitHub
parent 1f6481e527
commit 980fe138e7
5 changed files with 9 additions and 7 deletions

View File

@@ -296,7 +296,7 @@ export function getObject<T>(
* @alias Blockly.registry.getAllItems
*/
export function getAllItems<T>(
type: string|Type<T>, opt_cased: boolean, opt_throwIfMissing?: boolean):
type: string|Type<T>, opt_cased?: boolean, opt_throwIfMissing?: boolean):
{[key: string]: T|null|(new (...p1: AnyDuringMigration[]) => T)}|null {
type = String(type).toLowerCase();
const typeRegistry = typeMap[type];