The field key or key path
The value
The field object
Creates a field object. It's used to update nested maps.
import { field, update, collection } from 'typesaurus'
type User = { name: string }
const users = collection<User>('users')
update(users, '00sHm46UWKObv2W7XK9e', [
field('name', 'Sasha Koss'),
field(['address', 'city'], 'Dimitrovgrad')
])
//=> Promise<void>
The field key or key path
The value
The field object
Creates a field object. It's used to update nested maps.
import { field, update, collection } from 'typesaurus'
type User = { name: string }
const users = collection<User>('users')
update(users, '00sHm46UWKObv2W7XK9e', [
field('name', 'Sasha Koss'),
field(['address', 'city'], 'Dimitrovgrad')
])
//=> Promise<void>
The field key or key path
The value
The field object
Creates a field object. It's used to update nested maps.
import { field, update, collection } from 'typesaurus'
type User = { name: string }
const users = collection<User>('users')
update(users, '00sHm46UWKObv2W7XK9e', [
field('name', 'Sasha Koss'),
field(['address', 'city'], 'Dimitrovgrad')
])
//=> Promise<void>
The field key or key path
The value
The field object
Creates a field object. It's used to update nested maps.
import { field, update, collection } from 'typesaurus'
type User = { name: string }
const users = collection<User>('users')
update(users, '00sHm46UWKObv2W7XK9e', [
field('name', 'Sasha Koss'),
field(['address', 'city'], 'Dimitrovgrad')
])
//=> Promise<void>
The field key or key path
The value
The field object
Creates a field object. It's used to update nested maps.
import { field, update, collection } from 'typesaurus'
type User = { name: string }
const users = collection<User>('users')
update(users, '00sHm46UWKObv2W7XK9e', [
field('name', 'Sasha Koss'),
field(['address', 'city'], 'Dimitrovgrad')
])
//=> Promise<void>
The field key or key path
The value
The field object
Creates a field object. It's used to update nested maps.
import { field, update, collection } from 'typesaurus'
type User = { name: string }
const users = collection<User>('users')
update(users, '00sHm46UWKObv2W7XK9e', [
field('name', 'Sasha Koss'),
field(['address', 'city'], 'Dimitrovgrad')
])
//=> Promise<void>
The field key or key path
The value
The field object
Creates a field object. It's used to update nested maps.
import { field, update, collection } from 'typesaurus'
type User = { name: string }
const users = collection<User>('users')
update(users, '00sHm46UWKObv2W7XK9e', [
field('name', 'Sasha Koss'),
field(['address', 'city'], 'Dimitrovgrad')
])
//=> Promise<void>
The field key or key path
The value
The field object
Creates a field object. It's used to update nested maps.
import { field, update, collection } from 'typesaurus'
type User = { name: string }
const users = collection<User>('users')
update(users, '00sHm46UWKObv2W7XK9e', [
field('name', 'Sasha Koss'),
field(['address', 'city'], 'Dimitrovgrad')
])
//=> Promise<void>
The field key or key path
The value
The field object
Creates a field object. It's used to update nested maps.
import { field, update, collection } from 'typesaurus'
type User = { name: string }
const users = collection<User>('users')
update(users, '00sHm46UWKObv2W7XK9e', [
field('name', 'Sasha Koss'),
field(['address', 'city'], 'Dimitrovgrad')
])
//=> Promise<void>
The field key or key path
The value
The field object
Generated using TypeDoc
Creates a field object. It's used to update nested maps.
import { field, update, collection } from 'typesaurus' type User = { name: string } const users = collection<User>('users') update(users, '00sHm46UWKObv2W7XK9e', [ field('name', 'Sasha Koss'), field(['address', 'city'], 'Dimitrovgrad') ]) //=> Promise<void>