Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions types/hash-code/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*
!**/*.d.ts
!**/*.d.cts
!**/*.d.mts
!**/*.d.*.ts
4 changes: 4 additions & 0 deletions types/hash-code/hash-code-tests.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { hashCode } from "hash-code";

// $ExpectType number
hashCode("Hello");
3 changes: 3 additions & 0 deletions types/hash-code/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
declare function hashCode(str: string): number;

export { hashCode };
17 changes: 17 additions & 0 deletions types/hash-code/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"private": true,
"name": "@types/hash-code",
"version": "1.0.9999",
"projects": [
"https://github.com/coderhaoxin/hash-code"
],
"devDependencies": {
"@types/hash-code": "workspace:."
},
"owners": [
{
"name": "dunal",
"githubUsername": "dunal"
}
]
}
19 changes: 19 additions & 0 deletions types/hash-code/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"compilerOptions": {
"module": "node16",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictFunctionTypes": true,
"strictNullChecks": true,
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"hash-code-tests.ts"
]
}
6 changes: 3 additions & 3 deletions types/office-js-preview/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105577,7 +105577,7 @@ declare namespace Word {
toJSON(): Word.Interfaces.ListLevelCollectionData;
}
/**
* Represents a ListTemplate.
* Represents a list template.
*
* @remarks
* [Api set: WordApiDesktop 1.1]
Expand All @@ -105586,14 +105586,14 @@ declare namespace Word {
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
context: RequestContext;
/**
* Gets a ListLevels collection that represents all the levels for the specified ListTemplate.
* Gets a `ListLevelCollection` object that represents all the levels for the list template.
*
* @remarks
* [Api set: WordApiDesktop 1.1]
*/
readonly listLevels: Word.ListLevelCollection;
/**
* Specifies whether the specified ListTemplate object is outline numbered.
* Specifies whether the list template is outline numbered.
*
* @remarks
* [Api set: WordApiDesktop 1.1]
Expand Down
6 changes: 3 additions & 3 deletions types/office-js/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96375,7 +96375,7 @@ declare namespace Word {
toJSON(): Word.Interfaces.ListLevelCollectionData;
}
/**
* Represents a ListTemplate.
* Represents a list template.
*
* @remarks
* [Api set: WordApiDesktop 1.1]
Expand All @@ -96384,14 +96384,14 @@ declare namespace Word {
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
context: RequestContext;
/**
* Gets a ListLevels collection that represents all the levels for the specified ListTemplate.
* Gets a `ListLevelCollection` object that represents all the levels for the list template.
*
* @remarks
* [Api set: WordApiDesktop 1.1]
*/
readonly listLevels: Word.ListLevelCollection;
/**
* Specifies whether the specified ListTemplate object is outline numbered.
* Specifies whether the list template is outline numbered.
*
* @remarks
* [Api set: WordApiDesktop 1.1]
Expand Down