mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
add type
This commit is contained in:
+11
-1
@@ -1,5 +1,15 @@
|
||||
import type { Client } from '@appwrite.io/console';
|
||||
|
||||
type Source = {
|
||||
$id: string;
|
||||
fingerprint: string;
|
||||
referrer: string;
|
||||
ref: string;
|
||||
utmSource: string;
|
||||
utmCampaign: string;
|
||||
utmMedium: string;
|
||||
};
|
||||
|
||||
export class Sources {
|
||||
client: Client;
|
||||
|
||||
@@ -13,7 +23,7 @@ export class Sources {
|
||||
utmSource: string,
|
||||
utmCampaign: string,
|
||||
utmMedium: string
|
||||
): Promise<any> {
|
||||
): Promise<Source> {
|
||||
const path = `/console/sources`;
|
||||
const params = {
|
||||
ref,
|
||||
|
||||
Reference in New Issue
Block a user