# defineApp pages type reference

> Inspect the exact accepted type for pages in defineApp, including nested options and constraints.

The `pages` property is an input to [defineApp](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/defineApp).

## Exact accepted type

```
readonly (AnyCustomObjectDefinition | SduiPage | ({ apiName?: string; visibilityPlatforms?: AppVisibilityPlatform[]; } & { page: SduiPage; }) | ({ apiName?: string; visibilityPlatforms?: AppVisibilityPlatform[]; } & { apiName: string; canvasInstanceId: string; }) | { apiName?: never; object: ObjectReference | string; visibilityPlatforms?: NonNullable<AppProps["visibilityPlatforms"]>; })[]
```

TypeScript signature and generic parameters

```ts
defineApp(props: DefineAppProps): App;
```

## Related types

-   [SduiPage](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/SduiPage-ce138d1f)
-   [AppVisibilityPlatform](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/AppVisibilityPlatform-2b3761f2)
-   [ObjectReference](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/ObjectReference-7acb30a9)
-   [AppProps](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/AppProps-05433480)

Source: https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/defineApp-pages-34e46011

> For the complete documentation index, see [llms.txt](https://developer.rippling.com/llms.txt). Public pages have a Markdown version at the same URL with .md added.
