FaasJS
Home
  • Guide
  • Documents
  • Templates
  • Changelog
  • Ecosystem

    • Docker Images
  • Github
  • Contributing
  • Sponsor
  • Security
Home
  • Guide
  • Documents
  • Templates
  • Changelog
  • Ecosystem

    • Docker Images
  • Github
  • Contributing
  • Sponsor
  • Security

Documents / @faasjs/react / WindowStateHooks

Type Alias: WindowStateHooks<T>

WindowStateHooks<T> = { [K in keyof T as K extends string ? `use${Capitalize<K>}` : never]: () => T[K] }

Hook map generated by createWindowStates for each shared state key.

Type Parameters

T

T

Shared state object shape.