MCPcopy Create free account
hub / github.com/NativeScript/template-macos-solid / set

Function set

src/examples/todo.tsx:7–9  ·  view source on GitHub ↗
(key: string, value: string)

Source from the content-addressed store, hash-verified

5
6const storageApi = {
7 set(key: string, value: string) {
8 NSUserDefaults.standardUserDefaults.setObjectForKey(value, key);
9 },
10 get(key: string) {
11 return NSUserDefaults.standardUserDefaults.objectForKey(key);
12 },

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected