Skip to content

Instantly share code, notes, and snippets.

import { writable } from 'svelte/store'
/**
* Creates a writable store that
* exposes an effect HOC. This
* allows you to debounce a side
* effect.
*
* An example of utility might be
* a typeahead system. Storing form
@eh-dub
eh-dub / index.d.ts
Last active June 10, 2021 16:45
Sapper + Svelte + Typescript
// in $PROJECT_ROOT/typings/@sapper
declare module '@sapper/app' {
// from sapper/runtime/src/app/types.ts
// sapper doesn't export its types yet
interface Redirect {
statusCode: number
location: string
}
// end