seangwright/typescript-functional-extensions

Docs Improvement: Framework Integration

开放

#17 创建于 2022年9月29日

 (2 条评论) (0 个反应) (0 位负责人)TypeScript (6 个派生)auto 404
documentationenhancementhelp wanted

仓库指标

星标
 (39 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Is your feature request related to a problem? Please describe. It can be difficult to know which APIs of the monads in this library should be used in a given situation - specifically when using a framework that has an opinionated perspective on how to structure things and pass data around.

Describe the solution you'd like We can create small guides (linked from the README.md) that show how someone might use the library with a framework (backend and frontend) with a small snippet of example code and some principles to follow.

We could begin with a handful of framework examples, choosing the most popular as a starting point.

Here are some options:

  • Backend

    • Nestjs
    • Fastify
    • Nextjs
    • Remix
  • Frontend

    • Svelte
    • Vue
    • Angular
    • React
    • AlpineJS
    • Vanilla JS

Describe alternatives you've considered We could write blog posts to cover this but the README.md currently links out to blog posts that discuss how Maybe and Result can be used. We already have a full suite of unit tests and those should be independent of a framework anyway, so none of these improvements belong there.

Additional context See: Issue https://github.com/seangwright/typescript-functional-extensions/issues/14

贡献者指南