mirror of
https://github.com/google/blockly.git
synced 2026-01-06 00:20:37 +01:00
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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user