Skip to content

Commit 7a52cda

Browse files
committed
Update types
1 parent cf5f818 commit 7a52cda

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

types/lib/utils/templatize.d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,15 @@ declare namespace Polymer {
129129
* from `instance.parentModel` in cases where template instance nesting
130130
* causes an inner model to shadow an outer model.
131131
*
132+
* When `options.forwardHostProp` is declared as an option, any properties
133+
* referenced in the template will be automatically forwarded from the host of
134+
* the `<template>` to instances, with the exception of any properties listed in
135+
* the `options.instanceProps` object. `instanceProps` are assumed to be
136+
* managed by the owner of the instances, either passed into the constructor
137+
* or set after the fact. Note, any properties passed into the constructor will
138+
* always be set to the instance (regardless of whether they would normally
139+
* be forwarded from the host).
140+
*
132141
* Note that the class returned from `templatize` is generated only once
133142
* for a given `<template>` using `options` from the first call for that
134143
* template, and the cached class is returned for all subsequent calls to

0 commit comments

Comments
 (0)