AbstractOptionaloptions: PreconditionOptionsReadonlylocationThe location metadata for the piece's file.
ReadonlynameThe name of the piece.
ReadonlyoptionsThe raw options passed to this Piece
ReadonlypositionReadonlystoreThe store that contains the piece.
AbstractcontextConstructs a PreconditionError with the precondition parameter set to this.
Optionaloptions: Omit<Options, "precondition">The information.
ProtectedfetchPer-piece listener that is called when the piece is loaded into the store. Useful to set-up asynchronous initialization tasks.
Per-piece listener that is called when the piece is unloaded from the store. Useful to set-up clean-up tasks.
Reloads the piece by loading the same path in the store.
Defines the JSON.stringify behavior of this piece.
Unloads and disables the piece.
Whether or not the piece is enabled.