Skip to content
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.

Commit

Permalink
Bite the bullet and commit build outputs so that they are as accessib…
Browse files Browse the repository at this point in the history
…le as possible for people that may not be able to run the build in some OS or setup. An upside of this is that examples and documentation can be served out of the box without having to build them. Remove package.json 'prepare' scripts because they are no longer needed, as installing from git will already include build outputs.
  • Loading branch information
trusktr committed Sep 8, 2023
1 parent bbdd978 commit c77a500
Show file tree
Hide file tree
Showing 12 changed files with 845 additions and 4 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
node_modules/
package-lock.json
dist/
.vscode/
*.log
2 changes: 2 additions & 0 deletions dist/global.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/global.js.map

Large diffs are not rendered by default.

33 changes: 33 additions & 0 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
export interface VariableGetter<T> {
(): T;
}
export interface VariableSetter<T> {
(value: T): T;
}
export interface Variable<T = any> extends Iterable<VariableGetter<T> | VariableSetter<T>> {
(value?: undefined): T;
(value: T): T;
(value?: T): void | T;
get: VariableGetter<T>;
set: VariableSetter<T>;
[0]: VariableGetter<T>;
[1]: VariableSetter<T>;
[Symbol.iterator](): IterableIterator<VariableGetter<T> | VariableSetter<T>>;
}
export declare function variable<T>(value: T): [VariableGetter<T>, VariableSetter<T>] & Variable<T>;
export declare type Computation = (previousValue?: unknown) => unknown;
export declare type StopFunction = () => void;
export declare function autorun(f: Computation): StopFunction;
export declare function reactive(protoOrClassElement: any, propName?: string, _descriptor?: PropertyDescriptor): any;
export declare function _trackReactiveProperty(Class: AnyClassWithReactiveProps, propName: string): void;
declare type AnyClass = new (...args: any[]) => object;
declare type AnyClassWithReactiveProps = (new (...args: any[]) => object) & {
reactiveProperties?: string[];
__isReactive__?: true;
};
export declare function reactify<T>(obj: T, props: (keyof T)[]): typeof obj;
export declare function reactify<C extends AnyClass>(obj: InstanceType<C>, ctor: C): typeof obj;
export declare function circular<Type>(first: VariableGetter<Type>, setFirst: (v: Type) => void, second: VariableGetter<Type>, setSecond: (v: Type) => void): StopFunction;
export declare const version = "0.8.0";
export {};
//# sourceMappingURL=index.d.ts.map
1 change: 1 addition & 0 deletions dist/index.d.ts.map

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

209 changes: 209 additions & 0 deletions dist/index.js

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

1 change: 1 addition & 0 deletions dist/index.js.map

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

2 changes: 2 additions & 0 deletions dist/index.test.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=index.test.d.ts.map
1 change: 1 addition & 0 deletions dist/index.test.d.ts.map

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

Loading

0 comments on commit c77a500

Please sign in to comment.