Home > @uniformdev/canvas > CanvasClient > getCompositionList

CanvasClient.getCompositionList() method

Fetches lists of Canvas compositions, optionally by type

Signature:

getCompositionList(params?: Omit<CompositionGetParameters, 'projectId' | 'componentId' | 'compositionId' | 'slug'> & {
        filters?: CompositionFilters;
    } & ({
        resolveData: true;
        diagnostics?: boolean;
    } | {
        resolveData?: false;
    })): Promise<CompositionGetListResponse | CompositionResolvedListResponse>;

Parameters

ParameterTypeDescription
paramsOmit<CompositionGetParameters; } & ({ resolveData: true; diagnostics?: boolean; } | { resolveData?: false; })(Optional)

Returns:

Promise<CompositionGetListResponse | CompositionResolvedListResponse>