Answer the question
In order to leave comments, you need to log in
What is a promise entry?
What is this promise entry form - how does it work?
layerSearchActions: { [layer: number]: (items: LayerItemGeneric[], search: string) => Promise<{ [key: string]: LayerWellTool }>;} = {
335: async (
items: LayerItemGeneric[],
search: string
): Promise<{ [key: string]: LayerWellTool }> => {
}
};
Answer the question
In order to leave comments, you need to log in
A promise that resolves to an object, with type keys string
and valuesLayerWellTool
const foo: Promise< тут указывается тип данных которые возвращаются из промиса >
{ [layer: number]: (items: LayerItemGeneric[], search: string) => Promise<{ [key: string]: LayerWellTool }>;}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question