type SharedPageReferences<R> = R extends unknown ? typeof sharedPageReferences extends keyof R ? Exclude<R[typeof sharedPageReferences], undefined> : never : never; The shared page references ([RunicSharedClient]) that a generated page reference extends; never when it has none.