Effect
Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.
Introduction
Section titled “Introduction”If you have not heard about it before, Effect^ is a powerful TypeScript library designed to help developers easily create complex, synchronous, and asynchronous programs.
StudioCMS utilizes Effect to manage most of our code, bringing simplicity and easier reuse of functions. It has also helped us optimize dashboard loading times by taking an entirely new approach to async code.
StudioCMS Effect export
Section titled “StudioCMS Effect export”While working with StudioCMS and Effect, instead of needing to install it yourself, StudioCMS provides the Effect tools via the following export
import { Effect, Context, Schema, Data } from 'studiocms/effect';This includes all the same base exports from Effect’s default export import {} from 'effect'; as well as some other useful utilities from effect/Function and custom ones from StudioCMS.
import { runEffect, genLogger, pipeLogger, runtimeLogger } from 'studiocms/effect';