Documentation
    Preparing search index...

    Type Alias AssetWatchLike

    AssetWatchLike: (url: string, listener: (url: string) => void) => () => void

    The injected hot-reload seam: subscribe to changes for url, get an unsubscriber back. A Vite/webpack dev-server adapter is the expected host; this package does not speak any websocket protocol.

    Type Declaration

      • (url: string, listener: (url: string) => void): () => void
      • Parameters

        • url: string
        • listener: (url: string) => void

        Returns () => void