AdaptableCustomExpressionFunctionEntry

View as Markdown

A customStandardFunctions entry: a full definition, or a partial that inherits unspecified fields via extends.

extends?: never on the full branch is a TypeScript discriminant, not a runtime field. Without it, A | Partial<A> & { extends: string } makes object literals without extends fail with "Property 'extends' is missing" instead of checking the full definition.

TypeScript
export type AdaptableCustomExpressionFunctionEntry = (AdaptableCustomExpressionFunction & {
    extends?: never;
}) | AdaptableCustomExpressionFunctionWithExtends;
References

AdaptableCustomExpressionFunction