monocle-ts-esm
Version:
A porting of scala monocle library to TypeScript
17 lines (16 loc) • 339 B
TypeScript
/**
* @since 2.2.0
*/
import { Index } from '..'
/**
* @category model
* @since 2.2.0
*/
export interface ReadonlyNonEmptyArray<A> extends ReadonlyArray<A> {
readonly 0: A
}
/**
* @category constructor
* @since 2.2.0
*/
export declare const indexReadonlyNonEmptyArray: <A = never>() => Index<ReadonlyNonEmptyArray<A>, number, A>