export function getNamedObject()

in lib/builtin-entrypoints.ts [68:79]


export function getNamedObject(request: RequestContext, input: { name: string }): any {
    if (input == null || input.name == null) {
        throw new Error("'name' property must be specified under 'input' object of request.");
    }

    let object = request.getNamedObject(input.name);
    if (object == null || object.def == null) {
        return null;
    }

    return object.def;
}