Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
zhelvis committed Nov 1, 2023
1 parent 7a21a1e commit b028a50
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ export function createExtensionStorageDecorator<Data extends Record<string, unkn
/**
* Creates accessor decorator for the specified storage field.
*
* NOTE: You should not set the initial value to the accessor via assignment,
* because decorator overwrite accessors methods and don't use private property, created on initialization.
* Use Non-null assertion operator instead.
* @example `@storage('foo') accessor bar!: string`;
* @param field Storage field name.
* @throws Error if decorator is already registered for {@link field}
* or decorator is applied to class member different from auto accessor.
Expand Down

0 comments on commit b028a50

Please sign in to comment.