remove string type

This commit is contained in:
“chrisshank” 2025-01-01 13:02:17 -08:00
parent b3b99c8bdf
commit 18aba8c771
3 changed files with 7 additions and 6 deletions

View File

@ -15,7 +15,7 @@ export class FolkBaseConnection extends FolkElement {
}
`;
@property({ type: String, reflect: true }) source?: string;
@property({ reflect: true }) source?: string;
#sourceIframeSelector: string | undefined = undefined;
@ -23,7 +23,7 @@ export class FolkBaseConnection extends FolkElement {
@state() sourceRect: DOMRectReadOnly | null = null;
@property({ type: String, reflect: true }) target?: string;
@property({ reflect: true }) target?: string;
#targetIframeSelector: string | undefined = undefined;

View File

@ -1,6 +1,6 @@
import { property, state } from '@lit/reactive-element/decorators.js';
import { ClientRectObserverEntry, FolkElement, FolkObserver, parseDeepCSSSelector } from '@lib';
import { css, CSSResultGroup, PropertyValues } from '@lit/reactive-element';
import { property, state } from '@lit/reactive-element/decorators.js';
const folkObserver = new FolkObserver();
@ -19,7 +19,7 @@ export class FolkBaseSet extends FolkElement {
}
`;
@property({ type: String, reflect: true }) sources?: string;
@property({ reflect: true }) sources?: string;
#sourcesMap = new Map<Element, DOMRectReadOnly>();
get sourcesMap(): ReadonlyMap<Element, DOMRectReadOnly> {

View File

@ -42,8 +42,9 @@ export class FolkEventPropagator extends FolkRope {
`,
];
@property({ type: String, reflect: true }) trigger?: string;
@property({ type: String, reflect: true }) expression?: string;
@property({ reflect: true }) trigger?: string;
@property({ reflect: true }) expression?: string;
#triggerTextarea = document.createElement('textarea');
#expressionTextarea = document.createElement('textarea');