Skip to content

Commit

Permalink
Document.
Browse files Browse the repository at this point in the history
  • Loading branch information
danfuzz committed Nov 18, 2024
1 parent 1c425b3 commit 62b0f83
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/structy/export/BaseStruct.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ export class BaseStruct {
/**
* Checks to see if a property name is allowed. This is called by the base
* class for any encountered property which doesn't have a corresponding
* `_prop_*()` method. If it returns `true`, then the property-value pair is
* passed to {@link #_impl_extraProperty} for further processing. The default
* (base class) implementation always returns `false`.
* `_prop_*()` method and which doesn't already exist in the class (shadowing
* a pre-existing property isn't allowed). If it returns `true`, then the
* property-value pair is passed to {@link #_impl_extraProperty} for further
* processing. The default (base class) implementation always returns `false`.
*
* @param {string} name Property name.
* @returns {boolean} `true` if `name` is allowed on the instance, or `false`
Expand Down

0 comments on commit 62b0f83

Please sign in to comment.