index.d.ts 543 B

12345678910111213141516171819
  1. import { PupperComponent as Component } from "./core/Component";
  2. export default class Pupper {
  3. /**
  4. * The default component class
  5. */
  6. static Component: typeof Component;
  7. static defineComponent: typeof Component.create;
  8. /**
  9. * Sets a state in the global store.
  10. * @param name The state key.
  11. * @param value If set, will change the key value.
  12. * @returns
  13. */
  14. static store(name: string, value?: any): void;
  15. /**
  16. * The Pupper global state.
  17. */
  18. static $global: Record<string, any>;
  19. }