This is really just the functions needed for following this.
Most of it depends on some other stuff that people might not want to use. However, I guess if they don't want to use it they could just not use it.
constcore=require('@emotion/core')constcreateEmotionServer=require('create-emotion-server').defaultconstcreateCache=require('@emotion/cache').defaultexports.cacheProvider=core.CacheProviderexports.createEmotionServer=(cache)=>()=>createEmotionServer(cache)exports.createCache=createCacheexports.getExtractCritical=(server)=>server.extractCriticalmoduleServer.EmotionwhereimportEffect (Effect)
importReact.Basic (JSX, ReactComponent)
importReact.Basic.Hooks (ReactChildren)
foreignimportdataServer ∷ TypeforeignimportdataCache ∷ TypeforeignimportcreateEmotionServer∷Cache->EffectServerforeignimportcreateCache∷EffectCacheforeignimportgetExtractCritical∷Server->ExtractCriticalforeignimportcacheProvider∷ReactComponent{value∷Cache, children∷ReactChildrenJSX}typeExtractCritical=String->CriticaltypeCritical={html∷String, css∷String, ids∷ArrayString}
This is really just the functions needed for following this.
Most of it depends on some other stuff that people might not want to use. However, I guess if they don't want to use it they could just not use it.