/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ import type { SharedObjectKind } from "@fluidframework/shared-object-base"; import type { DataObjectKind } from "./types.js"; /** * Utility for creating SharedObjectKind instances for data objects. * @typeParam T - The kind of data object. * @internal */ export function createDataObjectKind( factory: T, ): T & SharedObjectKind ? I : unknown> { return factory as T & SharedObjectKind ? I : unknown>; }