Pulled ALL skills from 15 source repositories: - anthropics/skills: 16 (docs, design, MCP, testing) - obra/superpowers: 14 (TDD, debugging, agents, planning) - coreyhaines31/marketingskills: 25 (marketing, CRO, SEO, growth) - better-auth/skills: 5 (auth patterns) - vercel-labs/agent-skills: 5 (React, design, Vercel) - antfu/skills: 16 (Vue, Vite, Vitest, pnpm, Turborepo) - Plus 13 individual skills from various repos Mosaic Stack is not limited to coding — the Orchestrator and subagents serve coding, business, design, marketing, writing, logistics, analysis, and more. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
26 lines
663 B
Markdown
26 lines
663 B
Markdown
---
|
|
category: '@Math'
|
|
---
|
|
|
|
# createGenericProjection
|
|
|
|
Generic version of `createProjection`. Accepts a custom projector function to map arbitrary type of domains.
|
|
|
|
Refer to `createProjection` and `useProjection`
|
|
|
|
## Type Declarations
|
|
|
|
```ts
|
|
export type ProjectorFunction<F, T> = (
|
|
input: F,
|
|
from: readonly [F, F],
|
|
to: readonly [T, T],
|
|
) => T
|
|
export type UseProjection<F, T> = (input: MaybeRefOrGetter<F>) => ComputedRef<T>
|
|
export declare function createGenericProjection<F = number, T = number>(
|
|
fromDomain: MaybeRefOrGetter<readonly [F, F]>,
|
|
toDomain: MaybeRefOrGetter<readonly [T, T]>,
|
|
projector: ProjectorFunction<F, T>,
|
|
): UseProjection<F, T>
|
|
```
|