Skip to content

Commit

Permalink
chore: Format with new prettier version.
Browse files Browse the repository at this point in the history
  • Loading branch information
iphydf committed Feb 27, 2024
1 parent 673ec31 commit eb8218a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
9 changes: 9 additions & 0 deletions .restyled.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
restylers:
- prettier:
arguments: ["--print-width=100"]
- clang-format:
include:
- "**/*.c*"
- "**/*.h*"
- "*"
14 changes: 7 additions & 7 deletions typings/toxcore.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ declare module "toxcore" {
filepath: string,
data: Buffer,
pass: Buffer | string,
callback?: ErrorCallback
callback?: ErrorCallback,
): void;
encryptFileSync(filepath: string, data: Buffer, pass: Buffer | string): void;
encryptPassKey(data: Buffer, passKey: ToxPassKey, callback?: BufferCallback): void;
Expand Down Expand Up @@ -145,7 +145,7 @@ declare module "toxcore" {
friendnum: number,
filenum: number,
control: number,
callback?: ErrorCallback
callback?: ErrorCallback,
): void;
controlFileSync(friendnum: number, filenum: number, control: number | string): void;
deleteFriend(friendnum: number, callback?: ErrorCallback): void;
Expand Down Expand Up @@ -233,21 +233,21 @@ declare module "toxcore" {
filename: string,
size: number,
fileid: Buffer,
callback?: NumberCallback
callback?: NumberCallback,
): void;
sendFileSync(
friendnum: number,
kind: number,
filename: string,
size: number,
fileid?: Buffer
fileid?: Buffer,
): number;
sendFileChunk(
friendnum: number,
filenum: number,
position: number,
data: Buffer,
callback?: ErrorCallback
callback?: ErrorCallback,
): void;
sendFileChunkSync(friendnum: number, filenum: number, position: number, data: Buffer): void;
// Todo: Support more than just string 'type' for sendFriendMessage
Expand All @@ -256,7 +256,7 @@ declare module "toxcore" {
friendnum: number,
message: string,
type: string,
callback?: NumberCallback
callback?: NumberCallback,
): void;
sendFriendMessageSync(friendnum: number, message: string, type?: string): number;
sendLosslessPacket(friendnum: number, data: Buffer, callback?: ErrorCallback): void;
Expand Down Expand Up @@ -320,7 +320,7 @@ declare module "toxcore" {
getGroupchatPeerPublicKeyHex(
groupnum: number,
peernum: number,
callback?: StringCallback
callback?: StringCallback,
): void;
getGroupchatPeerPublicKeyHexSync(groupnum: number, peernum: number): string;
getGroupchatTitle(groupnum: number, callback?: StringCallback): void;
Expand Down

0 comments on commit eb8218a

Please sign in to comment.