ts-codemod-lib
Preparing search index...
functions/ast-transformers/readonly-transformer-helpers/readonly-context
nextReadonlyContext
Function nextReadonlyContext
nextReadonlyContext
<
const
Curr
extends
ReadonlyContext
,
const
Next
extends
"Readonly"
|
"readonly"
|
"DeepReadonly"
|
"none"
,
>
(
__namedParameters
:
Readonly
<
{
currentReadonlyContext
:
Curr
}
&
(
|
{
indexedAccessDepthChange
:
"decr"
|
"incr"
|
"keep"
|
"infinity"
;
nextReadonlyContextType
:
Next
;
}
|
{
indexedAccessDepthChange
?:
"infinity"
;
nextReadonlyContextType
:
"DeepReadonly"
;
}
)
,
>
,
)
:
Readonly
<
{
indexedAccessDepth
:
SafeUintWithSmallInt
;
type
:
Extract
<
ReadonlyContext
[
"type"
]
,
"DeepReadonly"
>
|
Next
;
}
,
>
Type Parameters
const
Curr
extends
ReadonlyContext
const
Next
extends
"Readonly"
|
"readonly"
|
"DeepReadonly"
|
"none"
Parameters
__namedParameters
:
Readonly
<
{
currentReadonlyContext
:
Curr
}
&
(
|
{
indexedAccessDepthChange
:
"decr"
|
"incr"
|
"keep"
|
"infinity"
;
nextReadonlyContextType
:
Next
;
}
|
{
indexedAccessDepthChange
?:
"infinity"
;
nextReadonlyContextType
:
"DeepReadonly"
;
}
)
,
>
Returns
Readonly
<
{
indexedAccessDepth
:
SafeUintWithSmallInt
;
type
:
Extract
<
ReadonlyContext
[
"type"
]
,
"DeepReadonly"
>
|
Next
;
}
,
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
ts-codemod-lib
Loading...