xylabs/sdk-react

View on GitHub
packages/shared/src/contextEx/create.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { createContext } from 'react'

import type { ContextExState } from './State.ts'

export const createContextEx = <T>() => createContext<T & ContextExState>({ provided: false } as T & ContextExState)