Variable preferencesConst

preferences: {
    forColumn<P, Data>(column: Column<Data>, klass: Class<P>): {
        delete(key: string): undefined | void;
        get(key: string): unknown;
        set(key: string, value: unknown): void;
    };
    forTable<P, Data>(table: Table<Data>, klass: Class<P>): {
        delete(key: string): undefined | void;
        get(key: string): unknown;
        set(key: string, value: unknown): undefined | void;
    };
} = ...

Type declaration

  • forColumn:function
    • returns an object for getting and setting preferences data based on the column (scoped to key)

      Only the provided plugin will have access to these preferences (though, if other plugins can guess how the underlying plugin access works, they can access this data, too. No security guaranteed)

      Type Parameters

      Parameters

      • column: Column<Data>
      • klass: Class<P>

      Returns {
          delete(key: string): undefined | void;
          get(key: string): unknown;
          set(key: string, value: unknown): void;
      }

  • forTable:function
    • returns an object for getting and setting preferences data based on the table (scoped to the key: "table")

      Only the provided plugin will have access to these preferences (though, if other plugins can guess how the underlying plugin access works, they can access this data, too. No security guaranteed)

      Type Parameters

      Parameters

      • table: Table<Data>
      • klass: Class<P>

      Returns {
          delete(key: string): undefined | void;
          get(key: string): unknown;
          set(key: string, value: unknown): undefined | void;
      }

Generated using TypeDoc