Skip to content

Commit

Permalink
update code and get all tests passing 🎉
Browse files Browse the repository at this point in the history
  • Loading branch information
trusktr committed Nov 8, 2023
1 parent ef80983 commit 47fa136
Show file tree
Hide file tree
Showing 30 changed files with 166 additions and 178 deletions.
1 change: 0 additions & 1 deletion dist/LumeElement.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ declare class LumeElement extends HTMLElement {
#private;
static elementName: string;
static defineElement(name?: string, registry?: CustomElementRegistry): typeof LumeElement;
static reactiveProperties?: string[];
static observedAttributes?: string[] | Record<string, AttributeHandler>;
private __attributesToProps?;
protected _preUpgradeValues: Map<PropertyKey, unknown>;
Expand Down
2 changes: 1 addition & 1 deletion dist/LumeElement.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion dist/LumeElement.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/LumeElement.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/LumeElement.test.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/LumeElement.test.js.map

Large diffs are not rendered by default.

18 changes: 10 additions & 8 deletions dist/attribute.d.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
export declare function attribute(prototype: any, propName: string, descriptor?: PropertyDescriptor): any;
export declare function attribute(handler?: AttributeHandler): (proto: any, propName: string) => any;
import type { ElementCtor } from './element.js';
export declare const __classFinishers: ((Class: ElementCtor) => void)[];
export declare function attribute(handler?: AttributeHandler): (value: any, context: any) => any;
export declare function attribute(value: any, context: any): any;
export declare namespace attribute {
var string: AttributeType<string>;
var number: AttributeType<number>;
var boolean: AttributeType<boolean>;
}
export declare function _attribute(prototype: any, propName: string, descriptor?: PropertyDescriptor, attributeHandler?: AttributeHandler): any;
export declare function __setUpAttribute(ctor: ElementCtor, propName: string, attributeHandler: AttributeHandler): any;
export type AttributeHandler<T = any> = {
to?: (propValue: T) => string | null;
from?: (AttributeValue: string | null) => T;
from?: (AttributeValue: string) => T;
default?: T;
};
type AttributeType<T> = (defaultValue?: T) => AttributeHandler<T>;
export declare function stringAttribute(defaultValue?: string): (proto: any, propName: string) => any;
export declare function numberAttribute(defaultValue?: number): (proto: any, propName: string) => any;
export declare function booleanAttribute(defaultValue?: boolean): (proto: any, propName: string) => any;
type AttributeType<T> = () => AttributeHandler<T>;
export declare function stringAttribute(value: any, context: any): any;
export declare function numberAttribute(value: any, context: any): any;
export declare function booleanAttribute(value: any, context: any): any;
export {};
//# sourceMappingURL=attribute.d.ts.map
Loading

0 comments on commit 47fa136

Please sign in to comment.