feat: Complete fleet — 94 skills across 10+ domains
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>
This commit is contained in:
41
skills/vueuse-functions/references/makeDestructurable.md
Normal file
41
skills/vueuse-functions/references/makeDestructurable.md
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
category: Utilities
|
||||
---
|
||||
|
||||
# makeDestructurable
|
||||
|
||||
Make isomorphic destructurable for object and array at the same time. See [this blog](https://antfu.me/posts/destructuring-with-object-or-array/) for more details.
|
||||
|
||||
## Usage
|
||||
|
||||
TypeScript Example:
|
||||
|
||||
```ts twoslash include main
|
||||
import { makeDestructurable } from '@vueuse/core'
|
||||
|
||||
const foo = { name: 'foo' }
|
||||
const bar = 1024
|
||||
|
||||
const obj = makeDestructurable(
|
||||
{ foo, bar } as const,
|
||||
[foo, bar] as const,
|
||||
)
|
||||
```
|
||||
|
||||
Usage:
|
||||
|
||||
```ts twoslash
|
||||
// @include: main
|
||||
// ---cut---
|
||||
let { foo, bar } = obj
|
||||
let [foo, bar] = obj
|
||||
```
|
||||
|
||||
## Type Declarations
|
||||
|
||||
```ts
|
||||
export declare function makeDestructurable<
|
||||
T extends Record<string, unknown>,
|
||||
A extends readonly any[],
|
||||
>(obj: T, arr: A): T & A
|
||||
```
|
||||
Reference in New Issue
Block a user