Skip to content

Commit b7a9859

Browse files
committed
move constructor definition to top for readability
1 parent 0316f11 commit b7a9859

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/index.ts

+6-5
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,12 @@ export type Value =
218218
| PathValue;
219219

220220
export class Property<PropertyValueType extends Value> {
221+
222+
constructor(
223+
readonly value: PropertyValueType,
224+
readonly name: string = "Property name"
225+
) {}
226+
221227
/**
222228
* The number of keyframes on the property
223229
*/
@@ -384,11 +390,6 @@ export class Property<PropertyValueType extends Value> {
384390
): PropertyValueType {
385391
return this.value;
386392
}
387-
388-
constructor(
389-
readonly value: PropertyValueType,
390-
readonly name: string = "Property name"
391-
) {}
392393
}
393394

394395
export class PathProperty extends Property<PathValue> {

0 commit comments

Comments
 (0)