@finos/legend-studio
Version:
40 lines • 1.75 kB
TypeScript
/**
* Copyright (c) 2020-present, Goldman Sachs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/// <reference types="react" resolution-mode="require"/>
import { type LambdaEditorState } from '@finos/legend-application';
import type { Type } from '@finos/legend-graph';
export declare const StudioLambdaEditor: ((props: {
className?: string | undefined;
disabled: boolean;
lambdaEditorState: LambdaEditorState;
/**
* TODO: when we pass in these expected type we should match a type as expected type if it's covariance, i.e. it is a subtype of
* the expected type. Note that we also have to handle that relationship for Primitive type
* See https://dzone.com/articles/covariance-and-contravariance
*/
expectedType?: Type | undefined;
matchedExpectedType?: (() => boolean) | undefined;
onExpectedTypeLabelSelect?: (() => void) | undefined;
forceBackdrop: boolean;
disableExpansion?: boolean | undefined;
forceExpansion?: boolean | undefined;
disablePopUp?: boolean | undefined;
useBaseTextEditorSettings?: boolean | undefined;
hideErrorBar?: boolean | undefined;
}) => JSX.Element) & {
displayName: string;
};
//# sourceMappingURL=StudioLambdaEditor.d.ts.map