MCPcopy Create free account
hub / github.com/catamphetamine/anychan / constructor

Method constructor

src/UserData/UserData.ts:43–105  ·  view source on GitHub ↗
(storage: Storage, {
		prefix = '',
		collections = COLLECTIONS as UserDataCollections,
		log = debug,
		userDataCleaner
	}: {
		prefix?: string,
		collections?: UserDataCollections,
		log?: (...args: any[]) => void,
		// `userDataCleaner` is not yet created at the time of creating a `UserData` instance.
		// That's why it's passed as a `boolean` rather than a `UserDataCleaner` instance.
		userDataCleaner?: boolean
	} = {})

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 3

forEachCollectionMethod · 0.95
validateCollectionsFunction · 0.85

Tested by

no test coverage detected