@dxos/app-toolkit - v0.16.0
    Preparing search index...

    Variable getListPartialsConst

    getListPartials: (
        ...args: [container: Container, db: Database],
    ) => {
        acceptPersistenceClass: Set<string>;
        acceptPersistenceKey: Set<string>;
        canDrop: (
            source: {
                id: string;
                item: any;
                path: readonly string[];
                treeId: string;
            },
        ) => boolean;
        dropInto: Container;
        isLink: (
            child: Readonly<
                {
                    cacheable?: string[];
                    data: Unknown;
                    id: string;
                    properties: Readonly<Record<string, any>>;
                    type: string;
                },
            >,
            from?: Readonly<
                {
                    cacheable?: string[];
                    data: any;
                    id: string;
                    properties: Readonly<Record<string, any>>;
                    type: string;
                },
            >,
        ) => boolean;
        listOf: Container;
        moveScope: undefined
        | string;
        onLink: (
            child: Readonly<
                {
                    cacheable?: string[];
                    data: Unknown;
                    id: string;
                    properties: Readonly<Record<string, any>>;
                    type: string;
                },
            >,
            index?: number,
        ) => void;
        onMoveIn: (
            child: Readonly<
                {
                    cacheable?: string[];
                    data: Unknown;
                    id: string;
                    properties: Readonly<Record<string, any>>;
                    type: string;
                },
            >,
            index?: number,
        ) => void;
        onMoveOut: (
            child: Readonly<
                {
                    cacheable?: string[];
                    data: Unknown;
                    id: string;
                    properties: Readonly<Record<string, any>>;
                    type: string;
                },
            >,
            destination: Readonly,
        ) => void;
        onRearrange: (nextOrder: unknown[]) => void;
        role: "branch";
    } = ...

    Partials for a node whose children are container's members; it is also a drop target for it.

    Type declaration

      • (
            ...args: [container: Container, db: Database],
        ): {
            acceptPersistenceClass: Set<string>;
            acceptPersistenceKey: Set<string>;
            canDrop: (
                source: {
                    id: string;
                    item: any;
                    path: readonly string[];
                    treeId: string;
                },
            ) => boolean;
            dropInto: Container;
            isLink: (
                child: Readonly<
                    {
                        cacheable?: string[];
                        data: Unknown;
                        id: string;
                        properties: Readonly<Record<string, any>>;
                        type: string;
                    },
                >,
                from?: Readonly<
                    {
                        cacheable?: string[];
                        data: any;
                        id: string;
                        properties: Readonly<Record<string, any>>;
                        type: string;
                    },
                >,
            ) => boolean;
            listOf: Container;
            moveScope: undefined
            | string;
            onLink: (
                child: Readonly<
                    {
                        cacheable?: string[];
                        data: Unknown;
                        id: string;
                        properties: Readonly<Record<string, any>>;
                        type: string;
                    },
                >,
                index?: number,
            ) => void;
            onMoveIn: (
                child: Readonly<
                    {
                        cacheable?: string[];
                        data: Unknown;
                        id: string;
                        properties: Readonly<Record<string, any>>;
                        type: string;
                    },
                >,
                index?: number,
            ) => void;
            onMoveOut: (
                child: Readonly<
                    {
                        cacheable?: string[];
                        data: Unknown;
                        id: string;
                        properties: Readonly<Record<string, any>>;
                        type: string;
                    },
                >,
                destination: Readonly,
            ) => void;
            onRearrange: (nextOrder: unknown[]) => void;
            role: "branch";
        }
      • Parameters

        • ...args: [container: Container, db: Database]

        Returns {
            acceptPersistenceClass: Set<string>;
            acceptPersistenceKey: Set<string>;
            canDrop: (
                source: {
                    id: string;
                    item: any;
                    path: readonly string[];
                    treeId: string;
                },
            ) => boolean;
            dropInto: Container;
            isLink: (
                child: Readonly<
                    {
                        cacheable?: string[];
                        data: Unknown;
                        id: string;
                        properties: Readonly<Record<string, any>>;
                        type: string;
                    },
                >,
                from?: Readonly<
                    {
                        cacheable?: string[];
                        data: any;
                        id: string;
                        properties: Readonly<Record<string, any>>;
                        type: string;
                    },
                >,
            ) => boolean;
            listOf: Container;
            moveScope: undefined
            | string;
            onLink: (
                child: Readonly<
                    {
                        cacheable?: string[];
                        data: Unknown;
                        id: string;
                        properties: Readonly<Record<string, any>>;
                        type: string;
                    },
                >,
                index?: number,
            ) => void;
            onMoveIn: (
                child: Readonly<
                    {
                        cacheable?: string[];
                        data: Unknown;
                        id: string;
                        properties: Readonly<Record<string, any>>;
                        type: string;
                    },
                >,
                index?: number,
            ) => void;
            onMoveOut: (
                child: Readonly<
                    {
                        cacheable?: string[];
                        data: Unknown;
                        id: string;
                        properties: Readonly<Record<string, any>>;
                        type: string;
                    },
                >,
                destination: Readonly,
            ) => void;
            onRearrange: (nextOrder: unknown[]) => void;
            role: "branch";
        }