-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update code and get all tests passing 🎉
- Loading branch information
Showing
30 changed files
with
166 additions
and
178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.