Skip to content

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
alextekartik committed Sep 30, 2024
1 parent 74a0a95 commit 3186eb4
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion auth_node/lib/src/node/auth_node_js_interop.dart
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ extension JSDecodedIdTokenExt on JSDecodedIdToken {
/// The issuer identifier for the issuer of the response.
///
/// This value is a URL with the format
/// `https://securetoken.google.com/<PROJECT_ID>`, where <PROJECT_ID> is the
/// `https://securetoken.google.com/<PROJECT_ID>`, where `<PROJECT_ID>` is the
/// same project ID specified in the [aud] property.
external String get iss;

Expand Down
2 changes: 1 addition & 1 deletion firebase_node/lib/src/node/firebase_node_js_interop.dart
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ extension CredentialExt on Credential {
/// Returns a Google OAuth2 [AccessToken] object used to authenticate with
/// Firebase services.
///
/// Returns node.Promise<AccessToken>.
/// Returns `node.Promise<AccessToken>`
external js.JSPromise getAccessToken();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ extension type JSFirestoreFunctions._(js.JSObject _) implements js.JSObject {}
extension JSFirestoreFunctionsExt on JSFirestoreFunctions {
/// Event handler which triggers when a document is created, updated, or deleted in Firestore.
///
/// export declare function onDocumentWritten<Document extends string>(document: Document, handler: (event: FirestoreEvent<Change<DocumentSnapshot> | undefined, ParamsOf<Document>>) => any | Promise<any>): CloudFunction<FirestoreEvent<Change<DocumentSnapshot> | undefined, ParamsOf<Document>>>;quest.
/// export declare function `onDocumentWritten<Document extends string>(document: Document, handler: (event: FirestoreEvent<Change<DocumentSnapshot> | undefined, ParamsOf<Document>>) => any | Promise<any>): CloudFunction<FirestoreEvent<Change<DocumentSnapshot> | undefined, ParamsOf<Document>.`
@js.JS('onDocumentWritten')
external JSFirestoreFunction _onDocumentWritten(
Expand Down Expand Up @@ -59,15 +59,15 @@ extension JSCloudEventExt<T extends js.JSAny?> on JSCloudEvent<T> {

/// EventHandlerOptions interface
///
/// export interface EventHandlerOptions extends Omit<GlobalOptions, "enforceAppCheck">
/// export interface EventHandlerOptions extends `Omit<GlobalOptions, "enforceAppCheck">`
extension type JSEventHandlerOptions._(js.JSObject _)
implements JSGlobalOptions {
external factory JSEventHandlerOptions(
{String? region, String? memory, int? concurrency, int? timeoutSeconds});
}

/// firestore.DocumentOptions interface
/// export interface DocumentOptions<Document extends string = string> extends EventHandlerOptions
/// export interface `DocumentOptions<Document extends string = string>` extends EventHandlerOptions
extension type JSDocumentOptions._(js.JSObject _)
implements JSEventHandlerOptions {
/// Options
Expand All @@ -83,7 +83,7 @@ extension type JSDocumentOptions._(js.JSObject _)

/// Change class
/// The Cloud Functions interface for events that change state, such as Realtime Database or Cloud Firestore onWrite and onUpdate events.
/// export declare class Change<T>
/// export declare class `Change<T>`
extension type JSChange<T extends js.JSAny?>._(js.JSObject _)
implements js.JSObject {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ typedef JSFirebaseFunction = js.JSFunction;

/// Options that can be set on an onRequest HTTPS function.
///
/// export interface HttpsOptions extends Omit<GlobalOptions, "region">
/// export interface HttpsOptions extends `Omit<GlobalOptions, "region">`
extension type JSHttpsOptions._(js.JSObject _) implements JSGlobalOptions {
/// Options
external factory JSHttpsOptions(
Expand All @@ -188,7 +188,7 @@ extension type JSHttpsOptions._(js.JSObject _) implements JSGlobalOptions {

/// Options that can be set on an onRequest HTTPS function.
///
/// export interface HttpsOptions extends Omit<GlobalOptions, "region">
/// export interface HttpsOptions extends `Omit<GlobalOptions, "region">`
extension type JSCallableOptions._(js.JSObject _) implements JSHttpsOptions {
/// Options
external factory JSCallableOptions({
Expand All @@ -208,7 +208,7 @@ extension type JSCallableOptions._(js.JSObject _) implements JSHttpsOptions {

/// Options that can be set on an onRequest HTTPS function.
///
/// export interface HttpsOptions extends Omit<GlobalOptions, "region">
/// export interface HttpsOptions extends `Omit<GlobalOptions, "region">`
extension type JSHttpsError._(js.JSObject _) implements js.JSObject {
factory JSHttpsError(String code, String message, [js.JSAny? details]) {
return firebaseFunctionsModule.https.httpsErrorProto
Expand Down Expand Up @@ -246,7 +246,7 @@ extension JSHttpsErrorProtoExt on JSHttpsErrorProto {
}

extension JSHttpsOptionsExt on JSHttpsOptions {
/// string | boolean | RegExp | Array<string | RegExp>
/// string | boolean | RegExp | `Array<string | RegExp>`
///
/// If true, allows CORS on requests to this function. If this is a string or
/// RegExp, allows requests from domains that match the provided value. If
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,6 @@ extension JSScheduleOptionsExt on JSScheduleOptions {

/// The timezone that the schedule executes in.
///
/// timeZone?: timezone | Expression<string> | ResetValue
/// timeZone?: timezone | `Expression<string>` | ResetValue
external String? get timeZone;
}

0 comments on commit 3186eb4

Please sign in to comment.