* Example StreamlitEndpoints implementation.
| 47 | * Example StreamlitEndpoints implementation. |
| 48 | */ |
| 49 | class Endpoints implements StreamlitEndpoints { |
| 50 | public setStaticConfigUrl(_url: string | null): void { |
| 51 | throw new Error("Unimplemented") |
| 52 | } |
| 53 | |
| 54 | public sendClientErrorToHost( |
| 55 | _component: string, |
| 56 | _error: string | number, |
| 57 | _message: string, |
| 58 | _source: string, |
| 59 | _customComponentName?: string |
| 60 | ): void { |
| 61 | throw new Error("Unimplemented") |
| 62 | } |
| 63 | |
| 64 | public checkSourceUrlResponse( |
| 65 | _sourceUrl: string, |
| 66 | _componentName?: string |
| 67 | ): Promise<void> { |
| 68 | return Promise.reject(new Error("Unimplemented")) |
| 69 | } |
| 70 | |
| 71 | public buildComponentURL(_componentName: string, path: string): string { |
| 72 | return path |
| 73 | } |
| 74 | |
| 75 | public buildBidiComponentURL(_componentName: string, path: string): string { |
| 76 | return path |
| 77 | } |
| 78 | |
| 79 | public buildMediaURL(url: string): string { |
| 80 | return url |
| 81 | } |
| 82 | |
| 83 | public buildDownloadUrl(url: string): string { |
| 84 | return url |
| 85 | } |
| 86 | |
| 87 | public buildFileUploadURL(url: string): string { |
| 88 | return url |
| 89 | } |
| 90 | |
| 91 | public buildAppPageURL(): string { |
| 92 | throw new Error("Unimplemented") |
| 93 | } |
| 94 | |
| 95 | public uploadFileUploaderFile(): Promise<void> { |
| 96 | return Promise.reject(new Error("Unimplemented")) |
| 97 | } |
| 98 | |
| 99 | public deleteFileAtURL(): Promise<void> { |
| 100 | return Promise.reject(new Error("Unimplemented")) |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | // eslint-disable-next-line @typescript-eslint/no-empty-object-type |
| 105 | interface Props {} |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…