17 lines
339 B
TypeScript
17 lines
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>
|