ContentRefModel
Defined in: packages/core/src/models/content-ref.ts:6
Content refs for deduplicated Storybook assets.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ContentRefModel(
db,tables?):ContentRefModel
Defined in: packages/core/src/models/content-ref.ts:10
Parameters
Section titled “Parameters”tables?
Section titled “tables?”contentRefs
Section titled “contentRefs”Table
Returns
Section titled “Returns”ContentRefModel
Methods
Section titled “Methods”decrement()
Section titled “decrement()”decrement(
hash):Promise<ContentRef|null>
Defined in: packages/core/src/models/content-ref.ts:36
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<ContentRef | null>
get(
hash):Promise<ContentRef|null>
Defined in: packages/core/src/models/content-ref.ts:15
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<ContentRef | null>
listStale()
Section titled “listStale()”listStale(
cutoff):Promise<ContentRef[]>
Defined in: packages/core/src/models/content-ref.ts:49
Parameters
Section titled “Parameters”cutoff
Section titled “cutoff”string
Returns
Section titled “Returns”Promise<ContentRef[]>
upsert()
Section titled “upsert()”upsert(
hash):Promise<ContentRef>
Defined in: packages/core/src/models/content-ref.ts:19
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<ContentRef>