Skip to content

cupertino-files / defaultFollow

Function: defaultFollow() ​

defaultFollow(object, typeName): boolean

Defined in: src/tsp/clone.ts:77

The default policy: copy content, share presentation.

Deliberately conservative about what it copies. Sharing something that should have been copied gives two objects one owner — visible, and fixed by naming it in follow. Copying something that should have been shared silently forks a document's styling, which is far harder to notice.

Parameters ​

object ​

IwaObject

typeName ​

string | undefined

Returns ​

boolean

MIT licensed. Independently made — not by Apple in California. Not affiliated with or endorsed by Apple Inc.