@hatiolab/things-scene 9.0.0-beta.53 → 9.0.0-beta.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/things-scene-min.js +3 -3
- package/things-scene-min.js.map +1 -1
- package/things-scene.d.ts +10 -2
- package/things-scene.mjs +3 -3
- package/things-scene.mjs.map +1 -1
package/things-scene.d.ts
CHANGED
|
@@ -146,7 +146,7 @@ declare module '@hatiolab/things-scene' {
|
|
|
146
146
|
/**
|
|
147
147
|
* Things-Scene 컴포넌트를 등록하기 위한 데코레이터
|
|
148
148
|
*
|
|
149
|
-
* @param componentType 컴포넌트 타입 이름
|
|
149
|
+
* @param componentType 컴포넌트 타입 이름 또는 이름 배열
|
|
150
150
|
* @returns 클래스 데코레이터
|
|
151
151
|
*
|
|
152
152
|
* @example
|
|
@@ -156,8 +156,16 @@ declare module '@hatiolab/things-scene' {
|
|
|
156
156
|
* // 컴포넌트 구현
|
|
157
157
|
* }
|
|
158
158
|
* ```
|
|
159
|
+
*
|
|
160
|
+
* 여러 컴포넌트 타입을 한 번에 등록할 수도 있습니다:
|
|
161
|
+
* ```ts
|
|
162
|
+
* @sceneComponent(['input-text', 'input-password'])
|
|
163
|
+
* export default class Input extends HTMLOverlayElement {
|
|
164
|
+
* // 컴포넌트 구현
|
|
165
|
+
* }
|
|
166
|
+
* ```
|
|
159
167
|
*/
|
|
160
|
-
function sceneComponent(componentType: string): <T extends typeof Component>(target: T) => T
|
|
168
|
+
function sceneComponent(componentType: string | string[]): <T extends typeof Component>(target: T) => T
|
|
161
169
|
|
|
162
170
|
function create({
|
|
163
171
|
target,
|