
These changes to support Files app usage for file_manager_private.idl.
Add support to `doesNotSupportPromises` to force generating the
callback version of the API.
Add support to `instance_of` to support the usage of `Entry` in
file_manager_private.idl.
Add support for optional return value, by adding a `|undefined` to the
return type when needed. Also add support for optional callback
parameter.
Test: tools/json_schema_compiler/ts_definition_generator_test.py
Bug: 1203307
, b:319188669
Change-Id: I9977f98070ecba2cf414830d76df51d62a222b45
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5029466
Reviewed-by: Devlin Cronin <rdevlin.cronin@chromium.org>
Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
Commit-Queue: Luciano Pacheco <lucmult@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1250519}