InferGetStaticPropsType Type — astro Architecture
Architecture documentation for the InferGetStaticPropsType type/interface in common.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD b4627241_bf92_9333_25ea_678ef0cf83c8["InferGetStaticPropsType"] 83fd1b15_856f_b68a_354e_50d33a03c84c["common.ts"] b4627241_bf92_9333_25ea_678ef0cf83c8 -->|defined in| 83fd1b15_856f_b68a_354e_50d33a03c84c style b4627241_bf92_9333_25ea_678ef0cf83c8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/types/public/common.ts lines 173–181
export type InferGetStaticPropsType<T> = T extends (
opts: GetStaticPathsOptions,
) => infer R | Promise<infer R>
? R extends Array<infer U>
? U extends { props: infer P }
? P
: never
: never
: never;
Defined In
Source
Frequently Asked Questions
What is the InferGetStaticPropsType type?
InferGetStaticPropsType is a type/interface in the astro codebase, defined in packages/astro/src/types/public/common.ts.
Where is InferGetStaticPropsType defined?
InferGetStaticPropsType is defined in packages/astro/src/types/public/common.ts at line 173.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free