How does typescript add a property or method declaration to a class in a third-party library?

1. I am using typescript development, I installed a npm library, it comes with the type declaration file d.ts, but because the author did not update the maintenance in time, the class of this declaration file lacks a method declaration.
question: how can I write a declaration file in the project to supplement the declaration of the missing method without modifying the author"s declaration file?
for example:
the react-native-sound library I use comes with an index.d.ts file with a Sound class


    declare class Sound{
          ...
          xxA():void
          ...
    }

but this class is missing a method declaration such as xxB, so how can I add this declaration to my project directory?
I made my own attempt. I created a new types directory in my src directory and created a new file called react-native-sound.d.ts. How do I change it in
?

May.31,2022

Let the landlord write a declaration file himself, which can be generated

using dts-gen .
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3b2b7-2c254.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3b2b7-2c254.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?