Skip to content

Commit a3f4bd2

Browse files
Fix typos in console log messages and update repostsCount type in TPost interface
1 parent bd0ac83 commit a3f4bd2

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

examples/fetch-company.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ async function fetchCompanyExample(): Promise<void> {
1010
console.log('🚀 TypeScript Linked API example starting...');
1111
await standardExample(linkedapi);
1212
await salesNavigatorExample(linkedapi);
13-
1413
} catch (error) {
1514
if (error instanceof LinkedApiError) {
1615
console.error('🚨 Linked API Error:', error.message);
@@ -88,7 +87,7 @@ async function salesNavigatorExample(linkedapi: LinkedApi): Promise<void> {
8887
console.log(`📍 Location: ${nvCompany.location}`);
8988
console.log(`🏭 Industry: ${nvCompany.industry}`);
9089
console.log(`🌐 Website: ${nvCompany.website}`);
91-
console.log(`👥 Employee Count: ${nvCompany.employeesCount}`);
90+
console.log(`👥 Employees Count: ${nvCompany.employeesCount}`);
9291
console.log(`📅 Founded: ${nvCompany.yearFounded || 'Not specified'}`);
9392
console.log(`👨‍💼 Employees Retrieved: ${nvCompany.employees?.length || 0}`);
9493
console.log(`🎯 Decision Makers Retrieved: ${nvCompany.dms?.length || 0}`);

examples/fetch-post.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ async function standardExample(linkedapi: LinkedApi): Promise<void> {
3838
console.log(`📊 Has Poll: ${post.hasPoll}`);
3939
console.log(`👍 Reactions: ${post.reactionsCount}`);
4040
console.log(`💬 Comments: ${post.commentsCount}`);
41-
console.log(`🔄 Reposts: ${post.repostsCount || 'No reposts'}`);
41+
console.log(`🔄 Reposts: ${post.repostsCount}`);
4242
}
4343
if (postResult.errors.length > 0) {
4444
console.error('🚨 Errors:', JSON.stringify(postResult.errors, null, 2));

src/types/actions/post.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export interface TPost {
1111
hasPoll: boolean;
1212
reactionsCount: number;
1313
commentsCount: number;
14-
repostsCount: number | null;
14+
repostsCount: number;
1515
}
1616

1717
export const POST_TYPE = {

0 commit comments

Comments
 (0)