Skip to content

Commit b648ee8

Browse files
committed
fix typo: String -> string
1 parent 0a9304a commit b648ee8

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

docs-devsite/firestore_.firestoredataconverter.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ async function demo(db: Firestore): Promise<void> {
175175
// `setDoc()` is _not_ be compatible with `WithFieldValue<Post>`. This
176176
// type checking prevents the caller from specifying objects with incorrect
177177
// properties or property values.
178-
// @ts-expect-error "Argument of type { ttl: String; } is not assignable to
178+
// @ts-expect-error "Argument of type { ttl: string; } is not assignable to
179179
// parameter of type WithFieldValue<Post>"
180180
await setDoc(documentRef, { ttl: 'The Title' });
181181
@@ -207,7 +207,7 @@ async function demo(db: Firestore): Promise<void> {
207207
// `updateDoc()` is _not_ be compatible with `WithFieldValue<PostDbModel>`.
208208
// This type checking prevents the caller from specifying objects with
209209
// incorrect properties or property values.
210-
// @ts-expect-error "Argument of type { title: String; } is not assignable
210+
// @ts-expect-error "Argument of type { title: string; } is not assignable
211211
// to parameter of type WithFieldValue<PostDbModel>"
212212
await updateDoc(documentRef, { title: 'New Title' });
213213
}

docs-devsite/firestore_lite.firestoredataconverter.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ async function demo(db: Firestore): Promise<void> {
174174
// `setDoc()` is _not_ be compatible with `WithFieldValue<Post>`. This
175175
// type checking prevents the caller from specifying objects with incorrect
176176
// properties or property values.
177-
// @ts-expect-error "Argument of type { ttl: String; } is not assignable to
177+
// @ts-expect-error "Argument of type { ttl: string; } is not assignable to
178178
// parameter of type WithFieldValue<Post>"
179179
await setDoc(documentRef, { ttl: 'The Title' });
180180
@@ -206,7 +206,7 @@ async function demo(db: Firestore): Promise<void> {
206206
// `updateDoc()` is _not_ be compatible with `WithFieldValue<PostDbModel>`.
207207
// This type checking prevents the caller from specifying objects with
208208
// incorrect properties or property values.
209-
// @ts-expect-error "Argument of type { title: String; } is not assignable
209+
// @ts-expect-error "Argument of type { title: string; } is not assignable
210210
// to parameter of type WithFieldValue<PostDbModel>"
211211
await updateDoc(documentRef, { title: 'New Title' });
212212
}

packages/firestore/src/api/snapshot.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ import { SnapshotListenOptions } from './reference_impl';
125125
* // `setDoc()` is _not_ be compatible with `WithFieldValue<Post>`. This
126126
* // type checking prevents the caller from specifying objects with incorrect
127127
* // properties or property values.
128-
* // @ts-expect-error "Argument of type { ttl: String; } is not assignable to
128+
* // @ts-expect-error "Argument of type { ttl: string; } is not assignable to
129129
* // parameter of type WithFieldValue<Post>"
130130
* await setDoc(documentRef, { ttl: 'The Title' });
131131
*
@@ -157,7 +157,7 @@ import { SnapshotListenOptions } from './reference_impl';
157157
* // `updateDoc()` is _not_ be compatible with `WithFieldValue<PostDbModel>`.
158158
* // This type checking prevents the caller from specifying objects with
159159
* // incorrect properties or property values.
160-
* // @ts-expect-error "Argument of type { title: String; } is not assignable
160+
* // @ts-expect-error "Argument of type { title: string; } is not assignable
161161
* // to parameter of type WithFieldValue<PostDbModel>"
162162
* await updateDoc(documentRef, { title: 'New Title' });
163163
* }

packages/firestore/src/lite-api/snapshot.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ import { AbstractUserDataWriter } from './user_data_writer';
123123
* // `setDoc()` is _not_ be compatible with `WithFieldValue<Post>`. This
124124
* // type checking prevents the caller from specifying objects with incorrect
125125
* // properties or property values.
126-
* // @ts-expect-error "Argument of type { ttl: String; } is not assignable to
126+
* // @ts-expect-error "Argument of type { ttl: string; } is not assignable to
127127
* // parameter of type WithFieldValue<Post>"
128128
* await setDoc(documentRef, { ttl: 'The Title' });
129129
*
@@ -155,7 +155,7 @@ import { AbstractUserDataWriter } from './user_data_writer';
155155
* // `updateDoc()` is _not_ be compatible with `WithFieldValue<PostDbModel>`.
156156
* // This type checking prevents the caller from specifying objects with
157157
* // incorrect properties or property values.
158-
* // @ts-expect-error "Argument of type { title: String; } is not assignable
158+
* // @ts-expect-error "Argument of type { title: string; } is not assignable
159159
* // to parameter of type WithFieldValue<PostDbModel>"
160160
* await updateDoc(documentRef, { title: 'New Title' });
161161
* }

0 commit comments

Comments
 (0)