match directory structure of og lib

This commit is contained in:
array-in-a-matrix 2024-03-26 13:13:30 -04:00
parent bb5a1b19c2
commit c3829a60df
4 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{.emit:"/*INCLUDESECTION*/ import { AutojoinRoomsMixin } from 'matrix-bot-sdk';".}
import matrixTypes
import ../matrixTypes
proc AutojoinRoomsMixinSetupOnClient*(client: Client): void {.importjs: "AutojoinRoomsMixin.setupOnClient(#)".}

View File

@ -1,6 +1,6 @@
{.emit:"/*INCLUDESECTION*/ import { RichRepliesPreprocessor } from 'matrix-bot-sdk';".}
import matrixTypes
import ../matrixTypes
proc newRichRepliesPreprocessor*(): IPreprocessor {.importjs: "new RichRepliesPreprocessor()".}
proc newRichRepliesPreprocessor*(fetchRealEventContents: bool): IPreprocessor {.importjs: "new RichRepliesPreprocessor(#)".}

View File

@ -1,6 +1,6 @@
{.emit:"/*INCLUDESECTION*/ import { RustSdkCryptoStorageProvider } from 'matrix-bot-sdk';".}
import matrixTypes
import ../matrixTypes
proc newRustSdkCryptoStorageProvider*(storagePath: cstring): ICryptoStorageProvider {.importjs: "new RustSdkCryptoStorageProvider(#)"}
proc newRustSdkCryptoStorageProvider*(storagePath: cstring, storageType: cstring): ICryptoStorageProvider {.importjs: "new RustSdkCryptoStorageProvider(#, #)"}

View File

@ -1,6 +1,6 @@
{.emit:"/*INCLUDESECTION*/ import { SimpleFsStorageProvider } from 'matrix-bot-sdk';".}
import matrixTypes
import ../matrixTypes
proc newSimpleFsStorageProvider*(filename: cstring): Storage {.importjs: "new SimpleFsStorageProvider(#)".}
proc newSimpleFsStorageProvider*(filename: cstring, trackTransactionsInMemory: bool): Storage {.importjs: "new SimpleFsStorageProvider(#, #)".}